what is the difference between the query and corelated
query
Answer Posted / amar_kondla
select * from emp----- is a query;
and
co-related query is sub one of sub qury( sub qury
means--whose returning values are filtering the condition
of the main query)
ex; SELECT * FROM EMP E
WHERE E.SAL>( SELECT AVG(SAL) FROM EMP F
WHERE E.DEPTNO= F.DEPTNO);
SO HERE WE R FINDING THE EMPLOYEE WHO HAS GETTING MORE THAN
AVG(SAL) OF RESPECTING DEPTNO.
AND CO RELATED SUB QUERY ALWAYS USE ALIAS NAME FOR TABLE, IT
SIMILAR LIKE JAIN(SELF JOIN)
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What are the 3 modes of parameter?
Explain mutating table error.
What is db journal file?
Why do we use triggers?
What is sql dialect?
What is embedded sql what are its advantages?
Is there any restriction on the use of union in embedded sql?
What are different types of statements supported by sql?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
What is the difference between inner join and natural join?
What is the difference between view and stored procedure?
What is break?
What is the use of function "module procedure" in pl/sql?
what is timestamp in mysql? : Sql dba
How do I run a sql trace?