|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
help optimizing query
I have a query that is taking about 12 minutes to run. I'm sure there has to be a way to speed it up...i'm just not sure how. any suggestions on how to rewrite this would be much appreciated. i think it has something to do with the "not in" join.
Select Distinct T.TSNUMB from TSR T where T.TSSTAT='C' and T.TSCDAT >= '01-Oct-03' and T.TSCDAT <= sysdate and T.TSORGA in (Select distinct O.ORORGA from OrgCode O where O.ORTCON like '123456%' and T.TSNUMB not in (select distinct w.wcnumb from wobaskdtl w where w.wcbask like '%-V')) |
|
#2
|
||||
|
||||
|
what database are you using?
|
|
#3
|
||||
|
||||
|
what database are you using?
|
|
#4
|
||||
|
||||
|
what database are you using?
|
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > help optimizing query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|