Hi experts.
I have a select
SELECT * UP TO me_mass_rep-me_number_of_headers ROWS
FROM ztcrpin
INTO CORRESPONDING FIELDS OF TABLE crpin
WHERE lgort in ('LVUT','MOBI','CLIE')
AND status EQ 'DEPS'
AND statun EQ 'ATIV'
ORDER BY lotechk.
This 'select' takes more than 15 minutes to fetch data , The time limit in PRODUCTION is 15 minutes then:DUMP.
I want know :
Many conditions 'where' causes more delay?
WHERE lgort in ('LVUT','MOBI','CLIE')
AND status EQ 'DEPS'
AND statun EQ 'ATIV'
ORDER BY lotechk.
Do you think good idea to select with less the conditions and delete then by 'range' after?
this table ztcrpin has 4000.000 records.
Thanks for help.