Check out example codes for "sql where last 12 months". It will help you in understanding the concepts better.

Code Example 1

select Dateadd(Month, -12, GETDATE())

Learn ReactJs, React Native from akashmittal.com