I have a datevariable, I would like to have convert it to first day of its monh,
SELECT trunc(to_date('22-AUG-03'), 'MON') FROM dual;
More in the manual. About Oracle needing a dummy FROM: Select without a FROM clause in Oracle
FROM