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.
SELECT DISTINCT name FROM table列に表示される個別の名前を持つテーブルを取得するために使用しています。この特定の名前が列に表示された回数を返す追加の列を取得するにはどうすればよいですか?
SELECT DISTINCT name FROM table
select name, count(1) from table group by name;