I have 2 table A and B. In A 1 lakh record is present. In b 20 thousand data is present. To get the unique data from table A and B which join we should prefer left inner join or right outer join. Please answer.

Answers were Sorted based on User's Feedback



I have 2 table A and B. In A 1 lakh record is present. In b 20 thousand data is present. To get the ..

Answer / rizaul

I have used inner joins

Is This Answer Correct ?    6 Yes 0 No

I have 2 table A and B. In A 1 lakh record is present. In b 20 thousand data is present. To get the ..

Answer / geeta

select * from tab1
union
select * from tab2;

Is This Answer Correct ?    3 Yes 2 No

I have 2 table A and B. In A 1 lakh record is present. In b 20 thousand data is present. To get the ..

Answer / vijay_1994

Hi,
I have used left outer join
select
a,
b
from
tab1 ,
tab2
where
tab1.a = tab2.b(+);

Is This Answer Correct ?    0 Yes 0 No

I have 2 table A and B. In A 1 lakh record is present. In b 20 thousand data is present. To get the ..

Answer / anil

I prefer full outer join MINUS inner join.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More SQL PLSQL Interview Questions

What is dynamic query?

0 Answers  


a procedure one in two out parameters i am waiting it in a sql query can i get the output

1 Answers  


Do stored procedures prevent sql injection?

0 Answers  


what is the use of double ampersand (&&) in sql queries?

0 Answers  


How to set up sql*plus output format in oracle?

0 Answers  






Why is there a need for sqlcode and sqlerrm variables?

0 Answers  


How do you explain an index?

0 Answers  


What is a 'instead of trigger'?

3 Answers   Eenadu, TCS,


What are different methods to trace the pl/sql code?

0 Answers  


What is the difference between having and a where in sql?

0 Answers  


what are enums used for in mysql? : Sql dba

0 Answers  


Show the cursor attributes of pl/sql.

0 Answers  


Categories