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

I have the table like this S.No Name ID 01 Xyz 123 I want the result as 01Xyz123 How to write the query to retrieve the entire row data in a single column?

1 Answers  


What are the operators used in select statements?

0 Answers  


How can I get the number of records affected by a stored procedure?

0 Answers  


Which table is left in left join?

0 Answers  


What is autocommit sql?

0 Answers  






what is the difference between trigger and constraint?

3 Answers   HSBC,


What is the difference between sql and mysql?

0 Answers  


what is query cache in mysql? : Sql dba

0 Answers  


How to convert comma separated string to array in pl/sql?

0 Answers  


Explain how can you save or place your msg in a table?

0 Answers  


what is table? : Sql dba

0 Answers  


Define SQL and state the differences between SQL and other conventional programming Languages?

0 Answers  


Categories