Thread: MySql query
View Single Post
Old 06-15-2007, 03:18 PM  
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Quote:
Originally Posted by Alky View Post
select date_entered from data_table where date_entered < Date_Sub(now(),interval 10 day) group by date_entered

its something like that, it didn't test it though. date_entered is obviousley a column in your table holding date info.
i don't have any tables to select from..
all i can use is curdate() and date_sub or other mysql commands..
but no table to select from..

so, today we are 2007.06.15.. i wand the query to retourn dates from 2007.06.15 to 2007.06.05, one day on each row..
__________________

Last edited by alex79; 06-15-2007 at 03:19 PM..
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote