Skip to content
Advertisement

SQL query for today’s date minus two months

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 am on this point:

Advertisement

Answer

If you are using SQL Server try this:

Based on your update it would be:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement