我有两个表,其中表1包含4列,而表2包含8列。我想将表1中的两列与表2中的两列进行比较。
Table 1 have column1 and column2 (that needs to be compared)
Table 2 have column6 and column7 (that needs to be compared)
我需要比较这两列的组合。我尝试了以下查询,但它没有起作用。
Select * from table1
where column1, column2 NOT IN (Select column6, column7 from table2)
我如何比较这两个表中的两列?