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
What is the maximum limit on the number of columns in a table?
How to run the anonymous block again?
I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.
i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)
What is the order of defining local variables and sub procedures/functions?
What are the system predefined user roles?
Can we store images in oracle database?
What is a cursor in oracle?
How many categories of data types in oracle?
What are the oracle differences between nvl and coalesce
What is a sub query? What are its various types?
What is primefaces used for?
What are the extensions used by oracle reports?
What is data block in Oracle?
What are the different types of modules in oracle forms?