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

How to order siblings in oracle hierarchy queries?

595


Define the select into statement.

568


What is difference between pls_integer and integer?

514


How do you bind variables in pl sql?

573


what are the types of join and explain each? : Sql dba

527






What is db journal file?

514


Difference between global and parameter variables?

1450


What is primary key secondary key alternate key candidate key?

538


What is sql lookup?

507


Enlist the characteristics of pl/sql?

1235


What is scalar function in sql?

525


What is package in pl sql with an examples?

541


What are procedures used for?

523


What is offset and limit in sql?

545


what is 'trigger' in sql? : Sql dba

553