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 / manvar prajesh

select top 1 name,salary from emp where salary<(select
max(salary) from emp)order by salary desc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to return an array from java to pl/sql?

1132


Does truncate free space?

1005


What is an inner join sql?

1026


What is consistency?

1117


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

1032


What is t sql in sql server?

1071


What is the non-clustered index in sql?

1058


What are stuff and replace function?

1076


What does varchar include?

946


What is the difference between count 1 and count (*) in a sql query?

987


How to read xml file in oracle pl sql?

911


What is an exception in PL/SQL? What are the two types of exceptions?

1309


column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.

7334


What is an index in sql with example?

969


Can we join same table in sql?

1016