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
Which is better varchar or nvarchar?
How to change the order of columns in Oracle SQL Plus ?
What is data type in sql?
is it possible to pass an object or table to a procedure as an argument?
what is sql server agent? : Sql dba
Explain the difference between 'between' & 'and' operators in sql
what are date and time intervals? : Sql dba
How much does a sql dba make? : SQL DBA
what are the different type of normalization? : Sql dba
How to use distinct and count in sql query? Explain
what are the differences among rownum, rank and dense_rank? : Sql dba
How do I remove duplicates in two columns?
Why self join is used in sql?
What is pl sql in oracle?
Is vs as in pl sql?