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

please tell me the query to get details of the employee
having the second largest salary

Answer Posted / krishna mohan thamisetty

SELECT * FROM Emp e1
WHERE 2 = (SELECT COUNT(*) FROM Emp e2 WHERE e1.Salary <=
e2.Salary)

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between rownum and rowid?

955


Does windows server 2016 come with sql server?

985


Which is the main third-party tool used in sql server?

991


Distinguish between nested subquery and correlated subquery?

1112


How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?

1075


How to download microsoft sql server 2005 express edition?

1092


What is a trigger and types of a trigger?

1026


What are the restraints imposed on the table design by a merge replication?

1087


what is dbcc? : Sql server database administration

1077


What is the purpose of sql profiler in sql server? : sql server database administration

1157


What is difference between unique and primary key?

971


Explain the steps needed to create a scheduled job?

977


Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many

984


How do you know if sql server is running on your local system?

1093


How do you send email on SQL Server?

1115