On 1 May 2002, at 13:04, Jeff O'Neal wrote: > select foo from blah where date=(Current_Date)-1; > > Since it was just the end of the month that ended up giving us a blank > result set.
WHERE date = CURRENT_DATE - INTERVAL 1 DAY see http://www.mysql.com/doc/D/a/Date_and_time_functions.html [Filter fodder: SQL] -- Keith C. Ivey <[EMAIL PROTECTED]> Tobacco Documents Online http://tobaccodocuments.org --------------------------------------------------------------------- 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