How do you get all records from 2 tables. Which join do you use?

Answers were Sorted based on User's Feedback



How do you get all records from 2 tables. Which join do you use?..

Answer / rao

Using FULLOUTER JOIN

Is This Answer Correct ?    25 Yes 2 No

How do you get all records from 2 tables. Which join do you use?..

Answer / vinay

use full outer join you can get the records

Is This Answer Correct ?    8 Yes 0 No

How do you get all records from 2 tables. Which join do you use?..

Answer / pervez

using full outer join or Cartesian join we can get all records
from two tables

Is This Answer Correct ?    8 Yes 3 No

How do you get all records from 2 tables. Which join do you use?..

Answer / gvmahesh

full outer join.

select ename,sal,dname,loc,e.deptno from emp e
full outer join dept d on e.deptno=d.deptno;

Is This Answer Correct ?    5 Yes 0 No

How do you get all records from 2 tables. Which join do you use?..

Answer / kavithanedigunta

full outer join in 10 g

select a.*,d.dname
from emp a
full outer join
dept d on
a.DEPTNO = d.DEPTNO

full outer join in 9i

select a.* ,d.DNAME
from emp a, dept d
where a.DEPTNO = d.DEPTNO

Is This Answer Correct ?    4 Yes 0 No

How do you get all records from 2 tables. Which join do you use?..

Answer / selvaraj v , anna univ coe

Use Full Outer Join in Oracle 10g :

SELECT p.part_id,s.supplier_name FROM part p
FULL OUTER JOIN
supplier s ON p.supplier_idv = s.supplier_id;

Is This Answer Correct ?    3 Yes 1 No

How do you get all records from 2 tables. Which join do you use?..

Answer / sri

UNION ALL

Is This Answer Correct ?    0 Yes 0 No

How do you get all records from 2 tables. Which join do you use?..

Answer / mahesh

crartesion product of two tables

Is This Answer Correct ?    6 Yes 8 No

Post New Answer

More SQL PLSQL Interview Questions

How many null values can be inserted in a coulmn whihc is unique constraint

8 Answers   Flextronics,


can we delete the trigger in a view? if yes why if not why?

5 Answers   Tech Mahindra,


Does truncate table reset auto increment?

0 Answers  


What is difference between primary and secondary key?

0 Answers  


What is the difference between nvl function, ifnull function, and isnull function?

0 Answers  






how many groups of data types? : Sql dba

0 Answers  


Is inner join same as self join?

0 Answers  


What are the blocks in stored procedure?

6 Answers   Microsoft,


What does 0 mean in sql?

0 Answers  


Why are aggregate functions called so?

0 Answers  


can we use out parameter in a function?Give an example.

4 Answers   Logica CMG, TCS,


What is oracle ? why we should go for oracle database instead of diffrent databases available in the industry.

5 Answers   Polaris,


Categories