full outer join syntax
Answers were Sorted based on User's Feedback
Answer / thiyagarajan
select table1.columnname1,table2.columnname2
from
table1 full outer join table2
on
table1.colname=table2.colname
Is This Answer Correct ? | 13 Yes | 1 No |
Answer / madhav
Full outer join
select e.empno,e.ename,e.deptno,e.sal,d.deptno,d.dname from
emp e full outer join dept d
on e.deptno=d.deptno;
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / avi007
full outer join -
select * from table1,table2 where
table1.columnname(+)=table2.colunmname;
union
select * from table1,table2 where
table1.columnname =table2.colunmname(+);
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / naresh
select * from table full outer join tablename2;
or
select * from table1,table2 where
table1.columnname(+)=table2.colunmname(+);
Is This Answer Correct ? | 1 Yes | 4 No |
Answer / ambedkar
At first Full outer join is never not possible.
Is This Answer Correct ? | 0 Yes | 4 No |
write a query to display diference between two dates in sql server
What is pl sql block in dbms?
I want to execute a piece of code before calling a procedure. How to achieve it?
Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level.
How many database objects (trigger, packages, sequence etc) uses a particular field in a given table. For ex: I want to know how many database object uses the ATTRIBUTE1 in the PO_VENDORS table. What query will give me the result showing the database object name(package, trigger etc), field_name used (in this case ATTRIBUTE1) and table_name (in this case PO_VENDORS).
How to avoid using cursors? What to use instead of cursor and in what cases to do so?
wht is the difference between sqlaserver2000 and 2005
Is sql a backend language?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
Does inner join return duplicate rows?
Is it possible for a table to have more than one foreign key?
How many commands are in sql?