Witam
mam w bazie tabele z polem date w formie np 2009-01-01 00:00:00 jak wyciagnac rekordy np od maja 2008 do lutego 2009
uzywalem funkcji datepart
where ( DATEPART(year, p.Data) <=2009 and DATEPART(year, p.Data) >=2008 and DATEPART(month, p.Data) >=5 and DATEPART(month, p.Data) <=2
tylko ze miesiace sie kloca:/