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 can you fetch first 5 characters of the string?

1061


Can we write dml inside a function in sql server?

1003


What are different types of keys?

1171


What happens when a trigger is associated to a view?

970


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

1090


How many postgresql users are there, worldwide?

1128


What are the two virtual tables available at the time of database trigger execution?

1270


What do you mean by stored procedures? How do we use it?

1035


What is break?

1255


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

1261


What is normalization in a database?

1196


What are sql commands?

1066


Which sorts rows in sql?

1055


Explain the uses of a database trigger?

1086


Why do we use cursors?

1042