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

how to create a new table by selecting rows from another table in mysql? : Sql dba

570


What is an invalid partition table?

574


What is the process of copying data from table a to table b?

604


What are the sql aggregate functions?

612


Is sql easier than java?

531






what are the advantages of using stored procedures? : Sql dba

624


Why do we create views in sql?

565


How to pronounce postgresql?

586


How do you write a subquery?

531


What is parameter substitution in sql?

533


Why does sql need a server?

571


How sql query is executed?

562


How do you use a while loop in pl sql?

545


How do you run a query?

591


Do ddl statements need commit?

540