what is different between inline query,subquery& corelated
query?
Answer Posted / ramesh reddy veerabhadra
Basically Sub Query is Query within Query. There are different type of SubQuery.
1. Scalar Sub Query
Query that is totally independent from the main query.
select empno, (select count(*) from emp) total_emp
from emp
here the subquery is totally independent of the main query.
2. Corelated Sub Query
The sub query reffers to the main query.
select empno, (select deptname from dept d where e.deptno = d.deptno) deptname
from emp e
3. Inline view
A sub query that is used as a table or view in a SQL
select *
from (select empno, deptname
from emp e, dept d
where e.deptno = d.deptno)
where sal > 100
| Is This Answer Correct ? | 42 Yes | 12 No |
Post New Answer View All Answers
Can we modify approve purchase order?if yes what is navigation?
What is the Difference between the Person_Type_id column in the per_all_people_f and per_person_type_usages_f
can u give guidance abt packages of plsql
as a technical developer in oracle applications which type errors feced in your experience sofar
HOW TO SAVE UNIVERSES AND DOCUMENTS IN THE REPOSITORY?
Why more redos are generated when the oracle database is in begin backup mode?
Differentiate between transaction type and transaction source? : oracle accounts receivable
What Are Cross Validation & Adi?
Can you explain how to adjust the amount of advance already received against an invoice? : oracle accounts receivable
How to move the data from one flatfile to multiple staging tables?give me some examples? for example in po interface one flat file is there and multiple staging tables are there how can move it?please give me answer for this question?
What is the importance of batch source set up in ar? : oracle accounts receivable
What is the sql query to find the employee who has Nth maximum salary?
What is supporting issues GL AP and AR?
what is semphore explian it?
What are the interface tables used for ar invoices, customers, receipts for conversion process? : oracle accounts receivable