I have 2 tables, tbl_NameCode and tbl_Bkp both having columns ID and Name.
I have to select records from tbl_NameCode which are not in tbl_bkp.
SELECT * FROM tbl_Bkp
WHERE ? */COMBINATION OF ID,Name NOT IN (SELECT COMBINATION OF ID,NAME FROM tbl_NameCode )*/
How to compare the combination of two columns with combination of other two?
If am not wrong Except
operator should work.
SELECT Id1,Id2,Id3,..Name FROM tbl_Bkp
Except
select Id1,Id2,Id3,..Name from tbl_NameCode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With