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 / rajesh.m

Crete Table Curtest(Emp char(40),salary money)
------------------------------------------------
Select Min(Salary) from Curtest where Salary
in (select Top 2 Salary from Curtest)

--------------------------------------------------

Is This Answer Correct ?    21 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you see all indexes defined for a table? : Sql dba

988


What can sql server reporting services do?

1105


What is the maximum number of columns in sql table?

1167


When to use inner join and left join?

952


When do we use triggers?

1072


How do you break a loop in pl sql?

1043


Can we create foreign key without primary key?

979


What is the difference between function and procedure in pl/sql?

1074


What is the difference between pl and sql?

1089


What is the difference between database trigger and stored procedure?

1069


What is the difference between python and sql?

995


What is use of trigger?

928


How do I audit the sql sent to the server?

1000


What is java sql package?

1088


Does sqlite need a server?

1042