TABLE A TABLE B
EMPNO ENAME EMPNO ENAME
1 A 1 A
2 B 2 B
3 C 3 C
4 D 4 D
5 E 5 E
6 F
7 G
HOW TO GET THE UNMATCHED RECORDS IN SQL QUERY?

Answer Posted / damy

select * from b where b.empno not in(select a.empno from a);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is posting?

685


what is sp_pkeys? : Transact sql

778


what is a constraint? Tell me about its various levels. : Sql dba

646


How do I access sql anywhere database?

584


What is meant by user defined function?

666






What is mdf ldf and ndf?

656


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

2671


what are all the different types of indexes? : Sql dba

622


What is sql procedures and functions?

634


What are the two characteristics of a primary key?

576


Which is better trigger or stored procedure?

590


What is the best sql course?

616


What is null in pl/sql?

701


Does inner join return duplicate rows?

604


What is the most restrictive isolation level? : Transact sql

662