Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Instanzen in Tabelle1 zählen UND mit Tabelle2 verknüpfen

 SELECT t1.Prices, COUNT(t1.ID) AS TheCount, t2.Genre
 FROM Table1 AS t1
     INNER JOIN Table2 AS t2
         ON t1.ID = t2.ID
 GROUP BY t1.Prices, t2.Genre