1
I have an IMMOBILE table
ID | Tipo | endereço
1 | Casa | Rua teste
2 | Casa | Rua teste
3 | Apartamento | Rua teste
And a sales chart
id | ID_do imovel
1 | 1
2 | 2
I need to know based on the sales chart, which was the type of immovable best selling of the IMMOVEL table. Can anyone help me?
God right, but he returned me all kinds and I wanted only the best seller, for that I put ORDER BY total DESC limit 1
– Ivan Moreira