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 is view explain with example?
Explain the update statement in sql
Explain the working of foreign key?
what is the difference between delete and truncate commands? : Sql dba
How do you take the union of two tables in sql?
What is scalar data type in pl sql?
What is the difference between inner join and outer join?
Can pl sql procedure have a return statement?
What operators deal with null?
Can we use ddl statements in stored procedure?
What operating systems are supported by oracle sql developer?
What is an implicit commit?
What are the triggers associated with image items?
what is the difference between a local and a global temporary table? : Sql dba
what is schema? : Sql dba