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
SUMPRODUCT fn with nested IF statements
USB Printer Port WIth a Zebra ZM 400
Print a Access 2007 Pivot Table
MS Access SQL Inserting string value that contain a colon
How to scroll to selected item listbox vb.net
Internet selectively disconnecting in Vista after 10-15 minutes.
Excel Macro to check all data in Colum A in sheet1 and delete all cells that contain that in all sheets
Insert field into memo field
VB.Net - BulkCopy Excel to SQL...works, but funky
SBS 2003 NT Backup SqlServerWriter Error 0x800423f4