What different of iner joint & outer joint with example
Answer Posted / nusrath sultana
Inner join:fetch the data when matched,similar to equi join.
Outer join:fetch the data matched as well as some unmatched
data.
there are three types of outer join :
1)left outer join:it will fetch the data when matches in two
or more relation and the unmatched data from the left
relation is also selected.
SQL>SELECT E.ENAME,E1.COMM FROM EMP E LEFT OUTER JOIN EMP E1
ON E.EMPNO=E1.EMPNO;
2)right outer join:it will fetch the data when matches in
two or more relation and the unmatched data from the right
relation also selected.
SQL>SELECT E.ENAME,E1.COMM FROM EMP E RIGHT OUTER JOIN EMP
E1 ON E.EMPNO=E1.EMPNO;
3)full outer join:it will fetch the data when matches in two
or more relation and the unmatched data from the BOTH
relations are also selected.
SQL>SELECT E.ENAME,E1.COMM FROM EMP E FULL OUTER JOIN EMP E1
ON E.EMPNO=E1.EMPNO;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to increment dates by 1 in oracle?
How to export your connection information to a file?
What is the relation of a user account and a schema?
how the indexes are stored in the Oracle Database?
What is the difference between translate and replace?
What is a system tablespace and when it is created?
How to shutdown your 10g xe server from command line?
State any two functions of oracle?
What do you mean by merge in oracle and how can we merge two tables?
What is an oracle wallet?
What do you mean by group by clause?
How to create an oracle database manually?
What is procedure overloading in oracle?
Explain about your project and its relation to the current job position you are applying to?
You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?