Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
カウント結果からAVGを取得すると思います。
SELECT labelname AS Record_Labels, COUNT(title) AS Number_of_CDs_Released FROM CD JOIN RecordLabel ON labelname = released_by GROUP BY labelname;
これを試してみました:AVG(COUNT(title))ですが、機能しませんでした。誰かがここで私を助けることができますか?
これを行うには、ネストされたクエリを使用できます。
select avg(Number_of_CDs_Released) from (SELECT labelname AS Record_Labels, COUNT(title) AS Number_of_CDs_Released FROM CD JOIN RecordLabel ON labelname = released_by GROUP BY labelname) nested;