MySQL Forums
Forum List  »  Newbie

Show limits of a data interval ... formatted
Posted by: Hugo Moner
Date: August 05, 2005 09:20AM

Hi guys
I've executed this query successfully...

SELECT NAME,DATE_FORMAT(DATEBORN,'%d/%m/%Y') AS BDAY WHERE WEEK(DATEBORN) = WEEK(CURRENT_DATE()) ORDER BY DATEBORN ASC

This script is executed every friday with cron, and shows all the people whom had birthday in last 7 days...

Now, How could I modify query to show something like:

"Listing of people whom had birthday between 20/07/2005 and 27/07/2005" (I'd like to know how to get the date limits in this interval of 7 days selected)

I mean, how to show date interval/range of people whom were selected in the script execution, no matter which day script was execd.

Thanks a lot in advance. hope you've understood me...

Options: ReplyQuote


Subject
Written By
Posted
Show limits of a data interval ... formatted
August 05, 2005 09:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.