I have 2 fields: Begin_Date and Thru_Date
I need to pull records only where the current date (getdate?) is within the range of the Begin_Date and Thru_Date. (01/01/xx thru 12/31/xx)
The Thru_Date is never prior to the Begin_Date. What is the best way to structure the SQL stmt to do this?
WHERE.....activity.effective_date <= getdate() and activity.thru_date >=getdate()
Thanks!
I need to pull records only where the current date (getdate?) is within the range of the Begin_Date and Thru_Date. (01/01/xx thru 12/31/xx)
The Thru_Date is never prior to the Begin_Date. What is the best way to structure the SQL stmt to do this?
WHERE.....activity.effective_date <= getdate() and activity.thru_date >=getdate()
Thanks!