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.
次のようないくつかのレコード(ID、色)を持つAccessテーブルがあります。
1 red 1 blue 2 blue 3 white 3 yellow 3 red
ID 2のレコードのみが返されるようにクエリを作成するにはどうすればよいですか?ID 1と3はそれぞれこのテーブルに複数のレコードがあるため、選択したくありません。ありがとう。
SELECT * FROM tbl GROUP BY ID HAVING COUNT(*) = 1