I got a table with the following fields:
BirthDay (Date)
Reminder (Short integer)
I need to select all records where BirthDay - Reminder <= Today to display a
reminder.
In Access and MS SQL, I can do this:
SELECT ..... WHERE BirthDay - Reminder <= 01/01/2006
assuming 01/01/2006 is today's date.
Access and MS SQL can substract a number (Reminder) from BirthDay.
Can someone please tell me how I can achieve the same SELECT in MySQL?
Any help greatly appreciated.
Tks
John
BirthDay (Date)
Reminder (Short integer)
I need to select all records where BirthDay - Reminder <= Today to display a
reminder.
In Access and MS SQL, I can do this:
SELECT ..... WHERE BirthDay - Reminder <= 01/01/2006
assuming 01/01/2006 is today's date.
Access and MS SQL can substract a number (Reminder) from BirthDay.
Can someone please tell me how I can achieve the same SELECT in MySQL?
Any help greatly appreciated.
Tks
John
Comment