Link to home
Start Free TrialLog in
Avatar of jjc_mn
jjc_mn

asked on

Which sql query would go faster?

select * from table where number = '1' and insert_date > sysdate -1
or
select * from table where insert_date > sysdate -1 and number = '1'
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jjc_mn
jjc_mn

ASKER

Thanks
Both are using  same where  , but it depens on your size of table
>>but it depens on your size of table

In Oracle?