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 / sumit sharma

select sal from (select distinct(sal) from emp where sal is
NOT NULL order by sal dsc) where rownum = 2

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is foreign key? : Sql dba

1110


what are the t string functions available in tsql? : Transact sql

1065


What are sql commands?

1067


Can procedure in package be overloaded?

1144


What is trigger types in sql?

1046


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

1126


Advantages and disadvantages of stored procedure?

1169


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

1230


Are subqueries better than joins?

1042


How do you bind variables in pl sql?

1160


Which join is default?

1017


What are the properties of a transaction?

1186


What is the main difference between sql and pl/sql?

1150


Why is the cursor important?

1082


What is sql partition?

1168