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

how to find the second highest salary from emp table?

Answer Posted / gurvinder

select max(sal)from emp where sal in(select sal from emp minus select max(sal) from emp);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert in sql function?

1097


How do we accept inputs from user during runtime?

1074


What are conditional predicates?

1067


What is the purpose of my sql?

966


How can triggers be used for the table auditing?

1079


What are the various levels of constraints?

1133


How does rowid help in running a query faster?

1427


How can I make sql query run faster?

1023


Explain the difference between sql and mysql.

1069


How delete all data from table in sql?

1026


What are the types of operators available in sql?

1079


what are all the different types of indexes? : Sql dba

1062


Explain the uses of a database trigger?

1047


What are sql data types?

1037


how does a local variable is defined using t-sql? : Transact sql

1029