Re: [SQL] Start and End Day of a Week

2003-02-07 Thread Luis Magaña
Hi, I've found my own answer... this is in case somebody needs it someday, it seems that works properly in PG 7.3, one function gives the start of the week and the other one the end: CREATE OR REPLACE FUNCTION weekstart(int4,int4) RETURNS TIMESTAMP AS' DECLARE year ALIAS FOR $1;

[SQL] Start and End Day of a Week

2003-02-07 Thread Luis Magaña
Hi, how can I get the first and last day of a week given the year and the week number ??? example week 3 of 2003 starts in Jan 12th and ends on Jan 18th. how to know the last two values given the year and the number of week ? thanks. Best Regards. -- Luis Magaña. Gnovus Networks & Software