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 primary key in db?

1012


Can a table contain multiple foreign key’s?

1000


What does inner join mean?

1174


What are the disadvantages of file system?

1268


Where is all the data on the internet stored?

1015


What mean sql?

1015


Is mariadb a nosql database?

1056


How do rank () and dense_rank () differ?

1047


What is data control language?

994


What is audit logout in sql profiler?

1029


what are the authentication modes in sql server? : Sql dba

1067


what are the different type of normalization? : Sql dba

1028


What is implicit cursor in pl sql?

1097


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

1001


What are the types of functions in sql?

1021