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
Multiple XAP files in same clientbin?
SBS 2008 slow internet browsing
2007 - Text fields imported from Excel have a format property of '@'
Microsoft Great Plains Dynamics 10.0 Trial Download???
Windows 2008 R2 cannot resolve SIDs
Convert Hex to Dec from mscomm
trigger syntax MSSQL
Why does a Letter size print area on a worksheet refuse to print on one page or either scales it down
Calculate value on subform using field on main form
aggregate function for varchar field