/ Published in: SQL
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
AND TABLE.THE_DATE = TO_DATE(TO_CHAR(sysdate(), 'DD')-1||TO_CHAR(sysdate(), 'MM')||TO_CHAR(sysdate(), 'YYYY'), 'DDMMYYYY') //this IS TO compare ON the previous DAY