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
Logitech Wingman Force Joystick and Wheel not working with Vista 64-bit...help!!!
How do I prevent a SBS2003 computer rebooting with LSASS.EXE When trying to update a password the return status indicates that the value...
Output a report as PDF, prompt user for save location
sub report with null fields
How do I pass a cell reference through to my function code instead of the cell contents
Email Quesiton
MS Access - Is there a way to reset the Page Number after a Group.
Setting WPF radio button FontWeight based on Checked value
INSERT INTO new table from existing stored procedure
Is it possible to convert an array of objects to a generic list?