Untitled
Anonymous
plain_text
09/11/2023 5:34 PM
348 B
19
Indexable
SELECT
Century,
AVG(YearsLived) AS AverageAge,
COUNT(*) AS ComposerCount
FROM (
SELECT
1 + FLOOR(Born / 100) AS Century,
(Died - Born) AS YearsLived
FROM Composer
) ComposerData
GROUP BY Century
ORDER BY Century;
Editor is loading...