3
I have a table quarto
, wanted to return the amount of rooms you have on each floor (the room has an attribute andar
), but I don’t know how to get him back from every floor
SELECT andar, COUNT(* WHERE andar = andar????? ) AS quantidade
I wanted a comeback like
andar quantidade
1 5
2 10
3 6
That’s it! Thanks! I’m learning and I was in doubt
– Vitor Ceolin