Skip to content
Advertisement

SQL Query Comparing Date

I have a table of items with a ‘date_added’ column. What I want to do is select all the items added during the last two weeks. How can I do that?

Advertisement

Answer

If you are using MS SQL Server try this code:

For MySQL try:

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