lol, that's was right i just didn't know how to write it as a select statement with where. Sorry, that's exactly what i needed. THANKS SQLBILL & CHECKAI!
In the end i want to automatically delete all entries older than 3 months. They are users who are inactive. The field is called LastLoginDate and i'm using GetDate() to store it initially whenever the user logs on, it will update. I want to be able to click a button and run a delete where...
How do i select items in my database older than 3 months. I'm using getdate() to store it when it's created and i want to query items that are older than 3 monts. I'm using smalldatetime in the field.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.