I did not really specify a week or year. (i'm taking dates as it comes,
database is never older that 365 days, after that data get's copy'd to a
archive database).

I have a workaround at the moment with a cronjob that does a insert in a
monday's table on monday. This works but is not very nice..


-----Original Message-----
From: Peter Skipworth [mailto:[EMAIL PROTECTED]]
Sent: donderdag 8 maart 2001 9:43
To: Adams, Antoine A SSI-ISES-56
Cc: '[EMAIL PROTECTED]'
Subject: Re: Date query problem (hard one)


Antione,

What's your definition of a week number ? A week number in the range
1..52 is not in itself enough to calculate a precise date from..

regards,

P

On Thu, 8
Mar 2001, Adams, Antoine A SSI-ISES-56 wrote:

> I've been strugling with a query for some time now and I can't get the
> desired answer from mysql.
> 
> The desired answer:  a date  (bv. 2001-02-08)
> 
> What is the input:  a week number
> 
> What date do I need: The date of the monday where week = x
> 
> the idea was:  select date(week(10),1);
> 
> But offcourse this doesn't work..
> 
> Anyone any idea's????
> 
> 
> Antoine Adams
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> 

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to