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

Find 2nd Highest salery in emp table

Select* from emp where &n=
select * count from emp where (salery >=emp.salery)


Enter n value 2


These query is correct or not. Tell me any other methods.

Answer Posted / asimananda

SELECT MAX(SAL) FROM EMP WHERE SAL < ( SELECT MAX(SAL) FROM
EMP )

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the web service used for reporting services?

123


Explain in brief about Microsoft SQL server?

1067


What do you understand by integration services in sql server?

945


How does the report manager work in SSRS?

148


What is global temp table?

984


What do you understand by triggers and mention the different types of it?

905


Ways to improve the performance of a SQL Azure Database?

125


What is a covered index?

925


What is the difference between left and right outer join?

1051


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

965


What do you understand by physical_only option in dbcc checkdb?

966


Can you explain powershell included in sql server 2008?

925


What are the steps to insert a table?

925


What the class forname () does?

1034


How to convert a numeric expression from one data type to another?

996