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 sql server 2000 work load governor?

1154


Do you know what is similarity and difference between truncate and delete in sql?

1059


How to optimize stored procedures in sql server?

1236


What are indexers?

1128


what are the Prerequisites for Replication?

11436


What is the difference between truncate and delete commands?

1105


What is an sql server agent?

1106


What is the maximum size of a dimension? : sql server analysis services, ssas

1085


How you can find out if an index is useful to the optimizer?

985


Explain trigger and trigger types?

1031


What is the maximum rows in sql server table?

959


Every night you run a full backup after every 3 three hours you make a differential backup every hour you make an incremental backup in a worst-case scenario, how much work you can lose?

1000


Explain forward - only cursors?

1124


What is view in sql?

944


what data regions are and what are the different data regions?

146