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
How to fetch values from testtable1 that are not in testtable2 without using not keyword?
how to present a past time in hours, minutes and seconds? : Sql dba
What are the events on which a database trigger can be based?
Is join and inner join the same?
How many aggregate functions are available there in sql?
what is the stuff function and how does it differ from the replace function? : Sql dba
Is the primary key an index?
does sql support programming? : Sql dba
How to display the records between two range in Oracle SQL Plus?
What are the sql versions?
What is the maximum number of rows in sql table?
how would concatenate strings in mysql? : Sql dba
What is data definition language?
Is primary key clustered index?
What are all the different normalization?