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 sqlcommand?

0 Answers  


write a query that returns first characters of each word in Oracel/Sql pl sql

5 Answers  


Explain what is a database?

0 Answers  


What does trigger mean in psychology?

0 Answers  


What are sql procedures?

0 Answers  






In a PL/SQL block,which loop type should be used in a performance point of view & Why (as both loops can do the same task) 1) open - Fetch loop 2) for loop

4 Answers   JDA,


How do you handle exceptions. Give the syntax for it?

1 Answers   BCL, Microsoft,


Why do we use sqlite?

0 Answers  


what is HASH join?

2 Answers   Genpact, HCL,


Is left join inner or outer?

0 Answers  


How many triggers can be applied to a table?

0 Answers  


how to get @@error and @@rowcount at the same time? : Sql dba

0 Answers  


Categories