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 are key, name and value columns of an attribute? : sql server analysis services, ssas

1016


What does it mean to manipulate data?

993


How to list all login names on the ms sql server?

1142


What are constraints?

1012


Explain what stored procedure sp_replcounters is used for? : sql server replication

1518


What is the optimization being performed in oracle and SQL Server?

1051


What do you mean by stored techniques? How would we use it?

1034


Why use cursor in sql server?

1081


What is the difference between a clustered index and a non-clustered index?

991


Define inner join? Explain with an example?

999


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

1006


Can you explain different types of locks in sql server?

947


What is user-defined scalar function?

968


How to convert numeric values to integers in ms sql server?

1093


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

1007