Posts by marz • 26 points
1 post
-
1
votes1
answer66
viewsA: Doubt select with Where in SQL Server!
A possible solution: SELECT A.fabricante, A.modelo, count(distinct R.cgc) as NRevendedoras FROM Negocios AS N JOIN Revendedoras AS R on N.cgcRevenda = R.cgc JOIN Automoveis AS A on N.codAuto =…