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.

Answer Posted / geeta

select * from tab1
union
select * from tab2;

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does index help in query performance?

567


How can I delete duplicate rows?

567


Can we use joins in subquery?

539


What are the different ddl commands in sql?

582


write an sql query to find names of employee start with 'a'? : Sql dba

584






What does partition by mean in sql?

515


Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?

605


What is a sql trace file?

550


Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

673


What is the meaning of disabling a trigger?

649


Is grant a ddl statement?

453


What is a left inner join?

544


Is sqlite thread safe?

609


Is sql dba a good career? : SQL DBA

539


what is the difference between group by and order by in sql? : Sql dba

600