How do you get all records from 2 tables. Which join do you use?
Answers were Sorted based on User's Feedback
Answer / pervez
using full outer join or Cartesian join we can get all records
from two tables
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / 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 |
Answer / 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 |
Answer / selvaraj v , anna univ coe
Use Full Outer Join in Oracle 10g :
SELECT p.part_id,s.supplier_name FROM part p
FULL OUTER JOIN
supplier s ON p.supplier_idv = s.supplier_id;
| Is This Answer Correct ? | 3 Yes | 1 No |
What is sql deadlock?
What is varray in pl sql?
Is oracel sql developer written in java?
Write a sql query to get the third highest salary of an employee from employee_table?
Can we create a trigger on view?
I have a procedure in a procedure. The inner procedure contains out parameter. How I can call the inner procedure in the out procedure and send the inner procedure parameter value(out parameter value) into out procedure?
What is mutating error?
how u can find the n row from a table?
how to use myisamchk to check or repair myisam tables? : Sql dba
What are the differences between Database Trigger and Integrity constraints ?
Show how functions and procedures are called in a pl/sql block.
Is it possible for a table to have more than one foreign key?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)