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

Can a formula column referred to columns in higher group ?

2167


How to create a new oracle data file?

640


What happens if variable names collide with table/column names?

684


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1438


What is meant by joins?

719






How to open and close an explicit cursor in oracle?

647


How can we delete duplicate rows in a table?

640


How to find the duplicate rows count from employees table in oracle?

674


What do you mean by merge in oracle and how can we merge two tables?

684


How to execute the package in oracle?

670


can anyody please send me the dump for Oracle 10g certifications for DBA path?

1793


Can we create trigger on materialized view in oracle?

668


How to delete multiple rows from a table in oracle?

643


ur a sql devoloper...what is the process in ur company for finding the database BUGS .. seperate DB testers are there? or devr.s are manage? if DB TESTERS in there what is the process

1845


What are triggers in oracle?

660