Re: [SQL] Last day of month

2004-06-08 Thread Frank Bax
At 11:30 PM 2/25/04, Joe Conway wrote: Greg Sabino Mullane wrote: How to find the last sunday/mon/sat of any given month. There is probably a smoother way to do it, but here is a quick little function to do what you ask. Feed it a date and a number, where 0 is Sunday, 1 is Monday, etc. oops...f

Re: [SQL] Last day of month

2004-06-08 Thread Joe Conway
Greg Sabino Mullane wrote: How to find the last sunday/mon/sat of any given month. There is probably a smoother way to do it, but here is a quick little function to do what you ask. Feed it a date and a number, where 0 is Sunday, 1 is Monday, etc. How about this: regression=# select date_trun

[SQL] Last day of month

2004-06-07 Thread Kumar
Dear friends,   Postgres 7.3.4   How to find the last sunday/mon/sat of any given month.   Thanks Kumar

Re: [SQL] Last day of month

2004-02-26 Thread Michael Chaney
On Thu, Feb 26, 2004 at 03:07:52AM -, Greg Sabino Mullane wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > How to find the last sunday/mon/sat of any given month. > > There is probably a smoother way to do it, but here is a > quick little function to do what you ask

Re: [SQL] Last day of month

2004-02-25 Thread Joe Conway
Greg Sabino Mullane wrote: How to find the last sunday/mon/sat of any given month. There is probably a smoother way to do it, but here is a quick little function to do what you ask. Feed it a date and a number, where 0 is Sunday, 1 is Monday, etc. oops...forget my last reply...I was a bit too

Re: [SQL] Last day of month

2004-02-25 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > How to find the last sunday/mon/sat of any given month. There is probably a smoother way to do it, but here is a quick little function to do what you ask. Feed it a date and a number, where 0 is Sunday, 1 is Monday, etc. CREATE OR REPLACE