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

How to get a list of all tables with "sys.tables" view in ms sql server?

981


What is the maximum size of a row in sql server?

904


What methods do you follow to protect from sql injection attack?

966


How does index makes search faster?

918


What is meant by dirty read?

950


What are various limitations of the views?

996


Difference between primary key and clustered index?

932


What is the importance of three tier architecture?

1026


How to manipulate data from one table to another table ?

910


mention different types of relationships in the dbms?

962


Why do we use non clustered index?

1008


What are diverse clauses that form a part of sql?

1015


What is repeatable read?

934


Can we perform backup restore operation on tempdb?

953


What happens if you are trying to access a schema not owned by you?

911