Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is correlated sub-query?

Answer Posted / raj

Correlated sub query is evaluated once per row processed by the parent statement.

Example:which employee earn salary greater than avg salary of their department.

Query: select emp_no,emp_name,job,sal,dept_no from emp a where sal>(select avg(sal) from emp where dept_no=a.dept_no)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are aggregate and scalar functions?

1081


What is bitemporal narrowing?

1368


What is int identity in sql?

1201


How do I install sql?

1043


What is difference between cursor and trigger?

1129


What is difference between stored procedures and application procedures?

1059


Can two tables have same primary key?

1018


Why indexing is needed?

1042


How many triggers can be applied to a table?

1122


What are instead of triggers?

1099


is it possible to pass an object or table to a procedure as an argument?

1176


What is the difference between inner join and natural join?

1052


Explain table and field in sql?

1113


What is memory optimized?

1132


Difference between global and parameter variables?

2009