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 / bijaylaxmi
select b.empno,b.ename from b where not exists(select * from a
where a.empno=b.empno)
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to get help at the sql prompt?
What are operators available in sql?
List the various privileges that a user can grant to another user?
what is online transaction processing (oltp)? : Sql dba
What do you mean by stored procedures?
What are the different types of constraints?
Does db2 use sql?
What is t-sql? : Transact sql
how to shut down the server with 'mysqladmin'? : Sql dba
What is compilation error in pl sql?
what is foreign key? : Sql dba
What is right join in sql?
what is the difference between join and union? : Sql dba
Why do we create stored procedures & functions in pl/sql and how are they different?
Why is a trigger used?