Hi experts,
Plz let me know how to get the 1st date of the month using query, after passing a date in the query:
My below queries are giving me 1st date of year and last date of the month....Kindly hep...
SELECT TRUNC(TO_DATE('24-JUN-2011'),'YEAR') FROM DUAL
SELECT LAST_DAY(ADD_MONTHS('24-JUN-2011',12 -
TO_NUMBER(TO_CHAR(SYSDATE,'mm')))) FROM DUAL
Help appreciated,
Thnx in advance