I want records from table which stores the current date when a record is inserted with in current week only.
I have tried:
SELECT PId ,WorkDate ,Ho
Its Working For Me.
Select * From Acb Where WorkDate BETWEEN DATEADD(DAY, -7, GETDATE()) AND DATEADD(DAY, 1, GETDATE())
You have to put this line After the AND Clause AND DATEADD(DAY, 1, GETDATE())
AND DATEADD(DAY, 1, GETDATE())