1 Reply Latest reply on Dec 21, 2009 4:04 PM by Steven Klassen

    SQL Last quarter

    valdemirs

      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) )