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
How many triggers can be applied on a table?
Is oracle and sql same?
What is trigger types of trigger?
how to dump a table to a file with 'mysqldump'? : Sql dba
Is sql considered coding?
How can you get sql*loader to commit only at the end of the load file? : aql loader
How do I edit a stored procedure?
What are the ddl commands?
Which is better join or inner query?
Explain raise_application_error.
Define implicit and explicit cursors.
tell us something about heap tables. : Sql dba
List the different type of joins?
What is sql dialect?
Explain the uses of control file.