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 are the types of optimization?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
What is the difference between function, procedure and package in pl/sql?
What are the possible values that can be stored in a boolean data field?
What port does sql server use?
what are the join types in tsql? : Transact sql
Does sql require a server?
Is it mandatory for the primary key to be given a value when a new record is inserted?
What is pl sql block in dbms?
what is “go” in t-sql? : Transact sql
Does truncate release storage space?
What is cross join example?
Which is faster count (*) or count 1?
What is sql server and ase?
Write a sql select query that only returns each name only once from a table?