Adrian Klaver <[EMAIL PROTECTED]> writes:
> On Tuesday 26 February 2008 5:32 pm, Bruno Baguette wrote:
>> I have a week number (ISO 8601) and a year, based on theses values, I
>> would like to get the first and the last dates of that week.
> This will get you to the Monday of the week .
> select to_date('9 08','IW YY');
> to_date
> ------------
> 2008-02-25
> (1 row)
date_trunc('week', ...) would probably be a more convenient way of doing
that.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match