codice:
Select * From Tabella Where [tab1.id] <> [tab2.id]