I have to 3 tables Table1,table2,table3 and in all tables field name fieldname is similar .
I have to select values from table1 the values which is not in table2 and table3.
Select distinct(fieldname) from table1 where fieldname not in (select distinct(fieldname) from table2 union (select distinct(fieldname) from table3)
But I am gtting the proper result