Query to print the calender for the year
SELECT LPAD (MONTH, 20 – (20 – LENGTH (MONTH)) / 2) MONTH, “Sun”, “Mon”,“Tue”, “Wed”, “Thu”, “Fri”, “Sat”FROM (SELECT TO_CHAR (dt, ‘fmMonthfm YYYY’) MONTH,TO_CHAR (dt + 1, ‘iw’) week,MAX (DECODE (TO_CHAR (dt, ‘d’),‘1’, LPAD (TO_CHAR (dt, ‘fmdd’), 2))) “Sun”,MAX (DECODE (TO_CHAR (dt, ‘d’),‘2’, LPAD (TO_CHAR (dt, ‘fmdd’), 2))) “Mon”,MAX (DECODE (TO_CHAR (dt, ‘d’),‘3’, LPAD (TO_CHAR […]
Recent Comments