What different of iner joint & outer joint with example

Answer Posted / tripti gour

INNER JOIN: inner join fetch only matched data from 2 or
more tables.
ex: select empno, ename, e1.deptno, d1.deptno, dname
from emp e1, dept d1
where e1.deptno = d1.deptno;

output will the all records whose deptno is exists in both
table (emp and dept)

OUTER JOIN: is used to fetched matched and unmatched data
from 2 or more tables.there are 3 type of outer join:
Right outer join , Left outer join, Full outer join.
Right outer join will display the matched and unmatched
records of right side located table.and Left outer join does
just opposite of it.and Full outer join will display matched
and unmatched both type of records from both tables.
ex: select empno, ename, e1.deptno, d1.deptno, dname
from emp e1 right outer join dept d1
on e1.deptno =d1.deptno;

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is set verify off in oracle?

599


What is the use of oracle?

573


How to revoke create session privilege from a user in oracle?

570


Is there a combination of "like" and "in" in sql?

606


State and explain the different types of data models?

544






When do you get a .pll extension in oracle?

685


Oracle

1873


What is the scope of a local variable?

592


How to write an inner join with the where clause in oracle?

601


What are the different types of partitions in oracle?

512


What is ADDM Advisor in Oracle?

676


What happens to the current transaction if a ddl statement is executed?

591


How to connect asp pages to oracle servers?

585


What are the tools for Oracle ?

619


What is ordinary table in oracle?

667