Microsoft
Software
Hardware
Network
Question : help with mysql query
I need records of the employees who joined today and I am using this query
select * from emp where join_date between '2010-01-07 00:00:00' AND '2010-01-07 23:59:59'
I need help to change this query such that I don't have to manually change the date every day
Answer : help with mysql query
you will need this:
select * from emp where join_date >= CURDATE() and join_date < DATE_ADD(CURDATE(), INTERVAL 1 DAY);
Random Solutions
Save unbound combobox column value in Access 2007
Rank records in an Access Dbase by date
Dynamics GP Web Services PHP
Fonts not showing in fontlist
How do i import data from Visual FoxPro 6.0 DB to Access 2003 with VBA
Insert File VBA issues with Styles
Combine multiple Excel sheets into one sheet
Help! I'm getting an OleDbException: No error message available, result code: E_FAIL(0x80004005), trying to open an oleDBConnection to an Excel file.
Share resource fails to bring online
localhost/certserv doesnt work, says that the page cannot be found