Quote:
Originally posted by gpsingh
Also since you are using sysdate, this will cause for each row , to access dual table to get the sysdate.
I would prefer u write a pl/sql , get the sysdate into variable once and use that variable in your query.
This part is wrong. Sysdate in SQL will be evaluated only *once for the entire query*, not for each row. This is different as in PL/SQL expressions, where each sysdate in each expression is evaluated separately, so in PL/SQL it can realy be usefull to load sysdate in a variable and then use that variable through the entire block.