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  
 
programming4us programming4us