I need to query in a table called controls:
I have the column CH
which is the hourly load in minutes and I have the column SETOR
which are the sectors that participated in some training.
I need to make an appointment where it brings me the total (sum) of minutes per sector. Sector 7 would for example be 1080
result.
I did so: SELECT round(SUM(ch)) FROM controles WHERE setor = '7';
But I do not get any results.