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.
以下のように、3列と1000行のSQL形式のテーブルがあります。
Name Age Nick 20 Msh 23 Kij 19 jkh 20 kjh 22 cbc 23 iuy 27 jhjh 19
同じ年齢の名前とその数を知りたいのですが?
これは、Pythonの問題というよりもSQLの問題です。
集計関数(カウント)を使用する必要があります
このクエリを試してください:
select name, count(*) as age from table group by age;