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

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / sandeep

select top(1) a.salary
from

(
select top(2)sal
from
employee
order by salary desc
)a
order by a.salary asc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you determine the current isolation level? : Transact sql

1166


When you have to use a default "rollback to" savepoint of plvlog?

1211


How to use sql*plus built-in timers?

1212


Which is better stored procedure or query?

966


Mention what pl/sql package consists of?

1008


What is the difference between a primary key and a unique key?

1064


What are predefined functions in sql?

1055


i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5

4033


How is data stored on a disk?

1049


Why do you partition data?

1029


Explain sql data types?

1107


how can I make a script that can be bi-language (supports english, german)? : Sql dba

1025


What is difference between function and trigger?

1059


Show how functions and procedures are called in a pl/sql block.

1139


What is pivot query?

1085