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

Answer Posted / kavithanedigunta

full outer join in 10 g

select a.*,d.dname
from emp a
full outer join
dept d on
a.DEPTNO = d.DEPTNO

full outer join in 9i

select a.* ,d.DNAME
from emp a, dept d
where a.DEPTNO = d.DEPTNO

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the functionality of the function htmlentities? : Sql dba

692


How do sql triggers work?

742


How do you select unique values in sql?

704


How to run pl sql program in mysql?

681


Is progress software supports to ( pl/sql )?

717






Can you have a foreign key without a primary key?

681


What is set transaction?

765


Where is pl sql used?

677


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3715


Does sql*plus have a pl/sql engine?

753


how to drop an existing index in mysql? : Sql dba

714


What are the differences between implicit and explicit cursors?

704


Differentiate pl/sql and sql?

741


Which is faster count (*) or count 1?

757


Can we create a trigger on view?

667