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

Difference between open_form and call_form in oracle.

681


What is oracle open database communication (odbc)?

561


How many types of auditing in Oracle?

566


What is a table in oracle?

543


What are triggers in oracle?

561






How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

1807


What happens if the update subquery returns multiple rows?

612


What is a package in oracle?

566


material view and view disadvantages?

637


How can I introduce multiple conditions in like operator?

558


what's query optimization and without use of IN AND Exist can we get another way data from query

1670


What is the difference between truncate & delete command?

618


How can I combine multiple rows into a comma-delimited list in oracle?

583


various types of hints and their usage

2131


What do you understand by a database object? Can you list a few of them?

610