hi,
I have a Date field i wanted to provide current month and quarter filters
it should based on current date when ever uesr hit the report filter should caliculate from that date to last 3 months for quarter and simlarly for month.
for oracle i have this
Quarter :
date between add_months(trunc(sysdate,‘q’),-3) and add_months(add_months(trunc(sysdate,‘q’),-3),3)-0.0002/24)
but sql servrer ??
current month : Oracle
date between (trunc(sysdate,‘MM’)) and trunc(sysdate)
but sql servrer ??
select month(GETDATE)
select Datepart(qq,GETDATE) with this i am getting just number
thanks
pavan_au143 (BOB member since 2007-07-25)