I want to select all the records in a table where their date of entry is older then 2 months.
Any idea how I can do that?
I haven\'t tried anything yet but I
If you are using SQL Server try this:
SELECT * FROM MyTable WHERE MyDate < DATEADD(month, -2, GETDATE())
Based on your update it would be:
SELECT * FROM FB WHERE Dte < DATEADD(month, -2, GETDATE())