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

What is a mixed extent?

950


explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

1039


Do you know what are the differences between lost updates and uncommitted dependencies?

1008


How to get the definition of a user defined function back?

999


How to handle error or exception in sql?

934


What is table valued function and scalar valued functions?

985


Is foreign key a primary key?

976


What are relationships and mention different types of relationships in the dbms

910


What are tables in sql server?

961


what is new philosophy for database devises for sql server 7.0? : Sql server database administration

952


How to verify a user name with sqlcmd tool?

1019


What happens if null values are involved in boolean operations?

940


Explain transaction server explicit transaction?

876


What happens if time-only values are provided as date and time literals?

953


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

840