Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Sql Tuning help
Matt,
have you tried replacing the IN statement with an EXISTS
statement?
<FONT face=Tahoma
size=2>-----Original Message-----From:
SouthcottM_at_StarnetSystems.net
[mailto:SouthcottM_at_StarnetSystems.net]Sent: Wednesday, February 07,
2001 8:31 AMTo: Multiple recipients of list
ORACLE-LSubject: Sql Tuning help
I have been having
some problems with this statement
<SPAN
class=732172014-07022001>SELECT
to_char(<FONT
color=#000000>NVL(<FONT
color=#008000>SUM(<FONT
face=Arial>bet_amount<FONT color=#808000 size=1>)<FONT color=#000000 size=1>,0<FONT color=#808000 size=1>))<FONT face=Arial>FROM<FONT color=#000000 size=1> sb_bets<FONT face=Arial>WHERE<FONT color=#000000 size=1> processed_DATE <FONT color=#808000 size=1>>=
face=Arial>TO_DATE<FONT color=#808000 size=1>(<FONT color=#0000f0 size=1>'07011999 000000',<FONT
size=1>)<FONT color=#000000 size=1>,19<FONT color=#808000 size=1>-1<FONT color=#808000 size=1>)
size=1>(<FONT color=#000000 size=1>TO_DATE(<FONT face=Arial>'07011999 000000'<FONT
face=Arial>,<FONT color=#800000 size=1>19)<FONT face=Arial> <FONT color=#008000 size=1>AND
Matt
Southcott
DBA
<SPAN
class=474161317-01022001>Starnetsystems
(268) 480
1734
<SPAN
class=474161317-01022001>
Received on Wed Feb 07 2001 - 10:30:11 CST