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 / sayalibsl
select e2.empno, e2.ename from A e1, B e2
where e1.empno!=e2.empno;
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
What is a subquery in sql?
what is the difference between rownum pseudo column and row_number() function? : Sql dba
How is sql used in oracle?
what is a database lock ? : Sql dba
what is column? : Sql dba
What is the example of procedure?
What is difference between stored procedure and trigger?
Explain scalar functions in sql?
Is join same as left join?
Does group by remove duplicates?
What is oracle sql developer?
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
what are different types of keys in sql?
What are tables in sql?
Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10