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 COUNT(color) AS cnt, color FROM YourTable GROUP BY color