where we have to use ON clause and where we have to use USING
clause in JOINS

Answer Posted / saiprasanna

in ansi style the join condn can be given bu using "ON-clause"
or by using "USING-clause".
"USING" clause can be used if common column name is same other
wise "ON" clause is used.
ex:-select e.ename,d.dname from emp e join dept d on e.deptno
=d.deptno;
select e.ename,d.dname from emp e join dept d using(deptno);

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain oracle instance.

680


What is the exact use of Collections?

1677


What is SQL Tuning Advisor in Oracle?

631


What is analyze command used for?

574


Explain what are the characteristics of data files?

622






Differentiate between translate and replace?

625


How to declare a local variable?

592


How oracle handles dead locks?

598


How to create a table index in oracle?

654


What are the general rules on data consistency?

585


What are the different types of synonyms?

592


How many data types are supported?

612


What is the data type of dual table?

522


Explain the use of Merge statement in oracle 11g

592


How to use existing values in update statements using oracle?

545