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

I have student marks in a student table. I need second
highest mark .Then what will the query for this?

Answer Posted / madan

This ans. particularly when you want 2nd highest marks?
and not for nth highest marks.

SELECT MAX(mark) FROM student WHERE mark <
(SELECT MAX(mark)FROM student)

Is This Answer Correct ?    18 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Working with TLogs

1895


Do you know the isolation level that sql server support?

1003


What is the difference between function and stored procedure in sql server?

1153


How to add an address record into adventureworkslt?

1028


How to get @@error and @@rowcount at the same time?

1083


What is the maximum size of a row in sql server?

1005


What are difference between Cluster index and Non-Cluster index?

1131


How many types of the database links?

1116


Explain datetime2 data type in sal server 2008?

951


What is the difference between set and select?

1159


How to insert data into an existing table?

1027


What is it’s similarity with sql server?

160


What does top operator do?

1077


How do I connect to sql server database?

1066


How to recreate an existing index in ms sql server?

1116