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...

select * from emp where sal in(select max(sal) from emp)
here there is any limit for in operator how many values
accpect ?

Answer Posted / venkat

hi

let us suppose we have 5 employees in emp table having sal
2000,3000,2300,4500,3400
subquery- select max(sal) from emp picks only one value i.e
max-4500

there is no limit for IN Operator.see the below example

subquery- select sal from emp where sal/100=0;

if u hav n number of sal's are divisible by 100 the IN
operator must work on all the SAL's divisible by 100.

According to the usage we need to use best query to retrieve
data by keeping min work on server

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scalar and vector?

955


Define implicit and explicit cursors.

1094


What is number function in sql?

928


What are the possible values that can be stored in a boolean data field?

963


What is embedded sql what are its advantages?

979


What is primary key and unique key?

1071


Why are aggregate functions called so?

914


What do you know by pl/sql cursors?

1059


How much ram can sql express use?

947


What is lookup table in sql?

998


Explain the steps needed to create the scheduled job?

981


What packages(if any) has oracle provided for use by developers?

5737


What is a file delimiter?

1033


Are null values same as that of zero or a blank space?

985


What is the purpose of primary key?

979