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 / ravindra singh

select b.marks from (select distinct marks from student)
a,(select distinct marks from student) b
where a.marks >= b.marks
group by b.marks
having count(b.marks)=3

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is public role in sql server?

1142


How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?

2014


When does the auto update index statistics feature in sql server turn itself on?q) what specific conditions database should meet, before you can bulk copy data into it using bcp?

977


What is role playing dimension with two examples? : sql server analysis services, ssas

1000


What is buffer cash and log cache in sql server?

1115


What do you understand by the data quality services in sql server?

944


What are policy management terms?

981


How to start and end transact-sql statements?

1026


Does the unique constraint create an index?

1054


How to disable a login name in ms sql server?

1129


How to choose all records from the table?

1062


what is a correlated sub-query? : Sql server database administration

939


How do you identify a foreign key?

1021


Tell me what are cursors and when they are useful?

953


Explain hostprotectionattribute in sql server 2005?

1024