Suppose i have a 2 table. table1 has data id name 1 a 2 b 3 c But Table2 has data id name 1 a 2 b 3 c 4 d 5 e
Now i want a query which return remaining data id name 4 d 5 e
If any one have an idea kindly suggest me.
select * from table2 except select * from table1
select b.id, b.name from table1 a right outer join table2 b on a.id = b.id where a.id is null
Hey guys i have solved this.. I am using another column name here.
select distinct client from projects where client not in(select distinct projects.client from projects inner join clients on projects.client=clients.companyname)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)