以下のようなクエリを使用すると、IDの色が青、紫、緑、白、黒の行をフェッチできます。
SELECT t1.id, col
FROM extra as e INNER JOIN your_table as t1 USING ( id )
CROSS JOIN your_table as t2 USING ( id )
CROSS JOIN your_table as t3 USING ( id )
CROSS JOIN your_table as t4 USING ( id )
CROSS JOIN your_table as t5 USING ( id )
WHERE t1.color = 'blue' and t2.color = 'purple' and t3.color= 'green' and t4.color= 'white' and t5.color= 'black'
!=またはNOT INを使用しようとすると、機能しないようです。色に青、紫、緑、白が含まれ、黒は含まれないようにクエリを作成するにはどうすればよいですか?