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 do I run a pl sql procedure in sql developer?
Why sql query is slow?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
What is sql integrity?
What is difference between sql and excel?
What is nvarchar in sql?
what are the security recommendations while using mysql? : Sql dba
What is the difference between inner join and left join?
What are the various restrictions imposed on view in terms of dml?
What is use of trigger?
How to pronounce postgresql?
What are the types of index in sql?
Is sql easier than java?
What are primary key and foreign key and how they work?
I need a function for a train ticket reservation please answer it thanks in advance