1
With the query below this returning the total values of each month, however I need to count the quantities of times each item has in each month.
SELECT instancia,
(SELECT COUNT(instancia) FROM urt WHERE MONTH(ura_data) = 04) AS abril,
(SELECT COUNT(instancia) FROM urt WHERE MONTH(ura_data) = 05) AS maio,
(SELECT COUNT(instancia) FROM urt WHERE MONTH(ura_data) = 06) AS junho
from urt
"Each month" will always be April, May and June or will be every month?
– Woss