sql server - SQL Customer leave before trail ends -
I need help creating a SQL query for a sports rental site, I have to know the customers who Leave your test before the end of the test
Then the query will contain only the user table and I will have to do such a question: -
Select user from user where Date dated for less than 30 days The database is MS SQL 2008.
What do I still have: -
Select from user where (date and gt; = datejoded - 30) But this does not work.
You should use the DATEDIFF function:
Comments
Post a Comment