0
I have a situation that I need to calculate the total number of rooms over 50 meters, then I need to calculate those over 100 meters, and so on. Is there a way I can do it in the same query? I need the result by city:
calculate one at a time is very quiet:
select
CIDADE,
COUNT(SALA) as totalSalaAte50
from
EDIFICACOES
where
AREA_SALA <= 50
GROUP by
CIDADE;
yes it is possible but you have to put the table structure in question, and better if you have some data. Ah even better if you can build an example on http://sqlfiddle.com/ ai it is possible to help you :)
– Ricardo Pontual