Difference between join and a subquery?
Answer Posted / ashi
Sub query: The sub query has more than one select
statement,the inner query which executes first and then it
will be the value of the 2nd query.
EX:
select ename from emp where sal>(select avg(sal) from emp);
Joins:
When the data from more than one table in the database,then
a join condition used.Rows in the one table can be joined to
rows in the other table according ro the common values
existing in corresponding columns
EX:
select dname,ename from emp,dept where emp.deptid=dept.deptid;
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
if you ctreate table identity
What is java oracle used for?
What are the database administrators utilities available?
What happens to indexes if you drop a table?
How to select all columns of all rows from a table in oracle?
What are the numeric comparison operations?
What is the parameter mode that can be passed to a procedure?
Explain an index?
What is a database schema in oracle?
Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?
How to assign values to data fields in record variables?
How to get execution path reports on query statements?
what is meant by magic query
What are the original export and import utilities?
What is an oracle user role?