Is there a way to compare two identical tables and retrieve differential rows in Informix DB?
Consider the below tables, where ID is the primary key.
TABLE A
ID NAME EMAIL PROFILE
a1 ABC ABC@ymail.com student
a2 XYZ XYZ@gmail.com student
a3 LMN LMN@gmail.com Staff
TABLE B
ID NAME EMAIL PROFILE
a1 ABC ABC@ymail.com student
a2 XYZ XYZ@gmail.com student
a3 LMN LMN@ymail.com student
Kindly help me in framing an SQL to retrieve rows from TABLE A which is not matching with TABLE B.
OUTPUT should be:
ID NAME EMAIL PROFILE
a3 LMN LMN@gmail.com Staff