Microsoft
Software
Hardware
Network
Question : Return records On Date
I have a table that has several columns 2 of them are "from_date" and "to_date" respectively.
I need to write a query to see if today's date.... GetDate() falls between any of those dates, and return only those records.
Answer : Return records On Date
SELECT *
FROM SomeTable
WHERE from_date <= GETDATE() AND to_date >= GETDATE()
Random Solutions
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
Teaching iPhone app creation...Any advice?
Cisco ASA CSC setup
offline server ,active director
Counting number of rows
Windows 7 roaming profiles
Trusted Location Error Message "2001"
ASP.NET Error: The page was not displayed because the request entity is too large.
Icons and Start menu disappeared from desktop, running Windows 7 Home Edition on a Dell
psexec and copy file permissions