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 many replicas are maintained for each sql azure db?

124


what is the system function to get current user's user id? : Sql server database administration

1048


What is DCL?

1103


Where are sql server usernames and passwords stored in the sql server?

1172


Explain about service Broker functions?

1089


What is tcl in sql server?

1171


What is function of CUBE ?

1076


List the ways in which dynamic sql can be executed?

1058


What is statement level trigger?

1046


What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.

1329


What is sparse columns of sql server 2008?

1099


What is instead of dml trigger?

1055


How to enable tcp/ip protocol on a sql server?

1212


Explain active/passive and active/active cluster configurations?

1109


how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?

1689