I need to select in data from previous months, month by month.
My query looks like this:
SELECT *
FROM VIEW_INCD
WHERE MONTH(DH_CRIA_INCD) = DATEPART(mm,GETDATE()) - 1
AND YEAR(DH_CRIA_INCD) = YEAR(GETDATE());
Okay, I select only t...
asked by
08.08.2018 / 15:19