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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rownum in sql?

557


Can we use two order by clause in query?

543


I need a function for a train ticket reservation please answer it thanks in advance

561


How do I save a stored procedure?

520


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

531






What is delimiter in pl sql?

582


What is difference between pl and sql?

528


Explain the difference between drop and truncate commands in sql?

527


What is exception? What are the types of exceptions?

554


how to delete an existing column in a table? : Sql dba

550


What is the use of stored procedures?

517


Why do we use partitions in sql?

545


Are sql connections encrypted?

554


Why is pl sql used?

525


What is dense_rank in sql?

539