If you need to understand SQL Joins then following is the good article.
http://www.oracle-base.com/articles/9i/ANSIISOSQLSupport.php
http://www.oracle-base.com/articles/9i/ANSIISOSQLSupport.php
Oracle 11g, Oracle APEX 4.0, PL SQL, J2SE, J2EE , Oracle ADF, JDeveloper 11g.
ALL, ANY and SOME comparison conditions in SQL because there are alternatives to them that are used more regularly.SELECT TO_CHAR(SELL_DATE, 'DD-MON-YYYY HH24:MI:SS'),
TO_CHAR(LAG(SELL_DATE) OVER (ORDER BY SELL_DATE),
'DD-MON-YYYY HH24:MI:SS') AS SELL_DATE_PREV,
(SELL_DATE - LAG(SELL_DATE) OVER (ORDER BY SELL_DATE))
* 24 * 60 * 60 AS DIFF_IN_SECONDS
FROM PRODUCT_SALES
ORDER BY SELL_DATE DESC;| Oracle Application Express 4.0 with ExtJS |