mysqlにてテーブルを比較。その際に片方がEmptysetの場合除外するという処理は可能なのでしょうか?
select * from テーブル1 as a
where not exists(
select * from テーブル2 where
(a.column1 = column1 or a.column1 is null and column1 is null) and
(a.column2 = column2 or a.column2 is null and column2 is null));
※テーブル構造は全く一緒です。
初心者で申し訳ないのですがご教授のほどよろしくお願い申し上げます。