what is the difference between the query and corelated
query
Answer Posted / manish
select * from emp; --->> query
select * from emp where sal=(select max(sal) from emp);
--> here a sub query is also there
select * from emp outer where sal= ( select avg(sal) from
emp e where dept.e=dept.outer) --> corelated query
| Is This Answer Correct ? | 9 Yes | 7 No |
Post New Answer View All Answers
What is delimiter sql?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
Can 2 queries be executed simultaneously in a distributed database system?
What jobs use sql?
What is sp_helptext?
Why cross join is used?
What is data modelling in sql?
Is postgresql a nosql database?
What is union and union all keyword in sql?
how to use 'mysql' to run sql statements? : Sql dba
Why is %isopen always false for an implicit cursor?
What do you mean by field in sql?
Explain the components of sql?
Can we commit inside a trigger?
what are the features and advantages of object-oriented programming? : Sql dba