SQL Last 6 Months

The Solution to SQL Last 6 Months is


For MS SQL Server, you can use:

where datetime_column >= Dateadd(Month, Datediff(Month, 0, DATEADD(m, -6,
current_timestamp)), 0)

~ Answered on 2013-10-07 15:08:58


Most Viewed Questions: