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 are sql*plus environment variables?
What is an implicit commit?
How many types of sql are there?
Mention what are different methods to trace the pl/sql code?
What is sql prepared statement?
Differentiate pl/sql and sql?
What are the popular database management systems in the it industry?
What is the difference between the implicit and explicit cursors?
Can we use pl sql in sql server?
What is query syntax?
Why is sql better than hql?
How to get list of all tables from a database?
how to include numeric values in sql statements? : Sql dba
What is primary key secondary key alternate key candidate key?
What is the difference between count 1 and count (*) in a sql query?