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

Can we create view in stored procedure?

946


what are the different type of sql's statements ? : Sql dba

906


How do I remove all records from a table?

1063


Can pl sql procedure have a return statement?

1005


What is pl/sql language case sensitive?

1105


what is 'mysqlimport'? : Sql dba

1022


how to dump a table to a file with 'mysqldump'? : Sql dba

1025


Will truncate release space?

931


What is difference between pls_integer and integer?

943


what are the performance and scalability characteristics of mysql? : Sql dba

987


Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

1147


what is heap table? : Sql dba

1093


how can we destroy the cookie? : Sql dba

997


What is the difference between pl and sql?

1079


Explain select statements in sql?

1046