I just need the where clause in my select statement, where AddDate is less than or within a 3 month set. how
Select * FROM My Table where AddedDate DateDiff of DateNow less than 3 months
Use DATEADD () :
Select * FROM My Table where AddedDate>=DATEADD(m, -3, GETDATE())
SELECT * FROM MyTable WHERE AddedDate >= DATEADD(month, -3, getdate())
not quite sure what I understand, but I think you need this feature
where AddedDate >= dateadd(mm, -3, getdate())
Source: https://habr.com/ru/post/907226/More articles:Why is Python segfault trying to invoke an environment using ctypes in libc? - pythonFourSquare API for iphone - objective-ccrypt (3) $ 6 $ password hash algorithm (based on SHA-512) in Java? - javaJava crypt implementation (3)? - javaPL / SQL What does a word mean - oracleHow to change a word in a file using linux shell script - linuxLast Date Activity - Best Ideas for Implementation - c #How to create TDataSet search field at runtime? - delphiCollapse / Expand Groupboxes - animationASP.NET MVC sends JSON data to a controller action - jsonAll Articles