Hi:
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:
http://www.orafaq.com/forum/t/65099/0/