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 the difference between the query and corelated
query

Answer Posted / lova raju allumalla

when performing joins on two or more tables, we normally
write a query making use relational operators such as =
etc. which means each and every row of every table is
compared with each other,which is a unwanted situation when
looked in the perspective performance issue. where as
making use of corelated query one can minimise the tedoius
checks as described above. consider the example below with
a normal join
select * from emp e,dept d where e.deptno=d.deptno;

now the above same can be performed by using the co related
query
select * from emp where deptno in (select deptno from dept);

u can now make up the difference, in the first approach in
emp table, each row deptno value compared for each row
deptno value of dept table.where as in second approach the
(select deptno from dept) is executed only once for all
checks of the outer query select * from emp where deptno

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we implement rollback or commit statement in a trigger?

1041


Is progress software supports to ( pl/sql )?

1042


Advantages and disadvantages of stored procedure?

1122


Should I use mbr or gpt?

1026


What is pl sql script?

1036


How is use pl and sql?

1068


What is left join example?

952


What is function and procedure?

1037


What are character functions in sql?

943


Define select, insert, create, delete, update, drop keywords

1052


What is a primary key called that is made up of more than one field?

1351


how can we take a backup of a mysql table and how can we restore it. ? : Sql dba

975


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

1064


What is aggregate function in sql?

1041


what are the properties and different types of sub-queries? : Sql dba

1034