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

Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

1161


Explain about temporary stored procedure?

1012


How to enable tcp/ip protocol on a sql server?

1158


Describe how to use the linked server?

1137


What is tabulation?

949


What is key attribute?

931


Why variables called the most powerful component of ssis?

1075


Explain subquery and state its properties?

1040


What is CTE in SQL

942


How do I view a script in sql server?

1035


Give me any three differences between Truncate and Delete.

1103


How do I view a stored procedure in sql server?

979


How to drop an existing stored procedure in ms sql server?

1030


What is the architecture of ms sql reporting service?

985


what is the sql equivaent of the dataset relation object ?

2021