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 / arun
select *from B where (empno,ename) not in (Select
empno,ename from A)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is 'mysqlcheck'? : Sql dba
What is a clob in sql?
If a cursor is open, how can we find in a pl/sql block?
how to calculate expressions with sql statements? : Sql dba
what is oltp (online transaction processing)? : Sql dba
What is sql*loader and what is it used for?
What is lookup table in sql?
what is innodb? : Sql dba
What is the source code of a program?
How to revise and re-run the last sql command?
What is the difference between nvl function, ifnull function, and isnull function?
How many scalar data types are supported in pl/sql?
what is the syntax used for partition in tsql? : Transact sql
What is error ora-01000: maximum open cursors exceeded
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba