Please help me creating a sql code to show me last quarter.
This example below shows me last month:
( DateTime >= dateadd(mm,datediff(mm,0,getdate())-1,0) AND DateTime<dateadd(mm,datediff(mm,0,getdate()),0) )
This thread has the right idea:
Retrieving data ...