Bagaimana cara memilih semua baris dalam satu tabel yang tidak muncul di tabel lain?
Tabel 1:
+-----------+----------+------------+
| FirstName | LastName | BirthDate |
+-----------+----------+------------+
| Tia | Carrera | 1975-09-18 |
| Nikki | Taylor | 1972-03-04 |
| Yamila | Diaz | 1972-03-04 |
+-----------+----------+------------+
Meja 2:
+-----------+----------+------------+
| FirstName | LastName | BirthDate |
+-----------+----------+------------+
| Tia | Carrera | 1975-09-18 |
| Nikki | Taylor | 1972-03-04 |
+-----------+----------+------------+
Contoh keluaran untuk baris di Tabel1 yang tidak ada di Tabel2:
+-----------+----------+------------+
| FirstName | LastName | BirthDate |
+-----------+----------+------------+
| Yamila | Diaz | 1972-03-04 |
+-----------+----------+------------+
Mungkin sesuatu seperti ini seharusnya berhasil:
SELECT * FROM Table1 WHERE * NOT IN (SELECT * FROM Table2)