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
How to return top 5 rows in oracle?
20. Using a set operator, display the client number of all clients who have never placed an order.
How to insert multiple rows with one insert statement in oracle?
what is a Nested Loop join?
What is proxy method?
Give the various exception types.
How to best split csv strings in oracle 9i?
Why does oracle 9i treat an empty string as null?
How to declare a local variable?
Give the different types of rollback segments.
How to start a new transaction in oracle?
Which is better Oracle or MS SQL? Why?
How to assign a tablespace to a users in oracle?
Explain an exception and its types?
What is difference between cartesian join and cross join?