On Sat, Oct 02, 2004 at 11:41:37PM -0700, Rajesh nalankal wrote:
Quote:
here is my function to get last day of the month. but it causes
error while executing.
[snip]
is there any other alternative to this function like a builtin
function like last_day |
This should get you started:
SELECT date_trunc('month', CURRENT_DATE + INTERVAL'1 month') - INTERVAL'1 day';
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match