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
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
Cómo hacer una recuperación puntual de datos MySQL y MariaDB usando ClusterControl
Cómo leer y analizar los planes de ejecución de SQL Server
Rendimiento de OLTP desde PostgreSQL 8.3
Cómo encontrar todas las tablas con la columna de identidad en la base de datos de SQL Server - Tutorial de SQL Server / T-SQL, parte 45