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 to pipe multiline string to isql?
Explain scalar functions in sql?
Can we use ddl commands in pl sql?
What happens when a trigger is associated to a view?
What is normalisation in sql?
What is tuple in sql?
What does the hierarchical profiler does?
What does trigger mean in slang?
Does execute immediate commit?
what is the syntax used for partition in tsql? : Transact sql
What are all types of user defined functions?
What is the difference between a procedure and a function?
What are the different dml commands in sql?
What are secondary keys?
How is indexing done in search engines?