0
I need to mount a Query that selects the sum of the vacant amount of each month in a period of one year.
In case there would be several dates within each month that would have vacancies, which should all be grouped in a given month.
SELECT Periodo, SUM(Quantidade) FROM Vagas
WHERE Periodo between DATEPART(MONTH, '2019-02-01') and DATEPART(MONTH, '2019-07-31')
order by Periodo, Quantidade;