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 / vinod dubey

select * from emp
where sal = (select max(sal) from emp where sal <>(select max(sal) from emp));

it will defiantly work

best of luck

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare a variable in pl sql?

1019


What is relationship? How many types of relationship are there?

1175


mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql

1040


How to fix oracle error ora-00942: table or view does not exist

1012


what is error ora-03113: end-of-file on communication channel?

1160


What is package in pl sql with an examples?

1035


How many sql statements are used?

1008


How can a function retun more than one value in oracle with proper example?

1074


How do I run a sql query in pgadmin 4?

959


What is the use of index in sql?

1015


What is the purpose of primary key?

1019


Can we connect to postgresql using sql developer?

1000


How is debugging done?

972


Can a foreign key be null?

1081


What is a delimiter in sas?

1053