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 rtm stands for?
What does the acronym acid stand for in database management?
Is sql developer case sensitive?
how to decrement dates by 1 in mysql? : Sql dba
how to do backup entire database? : Transact sql
explain access control lists. : Sql dba
What does := mean in pl sql?
what is a control file ? : Sql dba
How to run sql commands in sql*plus?
Why use stored procedures?
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
What are the dml statements?
Is primary key is clustered index?
Mention what is the use of function "module procedure" in pl/sql?
what is sql profiler? : Sql dba