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 / lokeshwaran s

SELECT MAX(marks) AS second_highest_mark
FROM student
WHERE marks < (SELECT MAX(marks) FROM student);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1986


Why use sub query in sql server and list out types of sub queries?

935


How do you drop an index?

861


What does it mean to normalize a database and why would you do it?

936


How to move database physical files in ms sql server?

955


Explain differentiate between a having clause and a where clause?

851


Explain the flow of creating a cube? : sql server analysis services, ssas

1002


What are data files?

981


Is it true, that there is no difference between a rule and a check constraint?

971


What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

1031


What are the different types of cursor?

1039


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

951


Can sql servers link to other servers like oracle?

788


What is stretch database in sql server?

1025


how to control the amount of free space in your index pages? : Sql server database administration

981