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 sql query to sort on different column name according to the parameters passed in the function?

962


what authentication modes does sql server support? : Sql server database administration

1183


Explain the concepts and capabilities of sql server?

1014


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

1024


How is SQL Azure different than SQL server?

225


What is log ldf?

1044


How many triggers you can have on a table?

1033


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

1095


What are basics of policy management?

1150


How to start sql server browser service?

1181


What is the function of inner join?

1126


What is isolation levels?

1082


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1166


Explain what you mean by 3 tier architecture.

1125


What is provisioning, billing and metering, and connection routing concepts in the service layer?

115