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

What is bulk load in oracle?

826


How to convert a string to a date in oracle database?

785


How do I manually uninstall oracle client?

765


Explain database link?

871


Query to retrieve record for a many to many relationship ?

2289


How to define default values for formal parameters?

784


What is columnar storage what is the advantage?

737


what is the dual table in oracle?

732


Which is better Oracle or MS SQL? Why?

5855


How to drop an index in oracle?

805


how to do daily transactions with out sql* loader control file regesterd in apps?

1442


Give the various rollback segment states.

805


Why does oracle 9i treat an empty string as null?

743


Is there any function in oracle similar like group_concat of mysql?

801


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

2587