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 / kunal sain

select mark from student s
where 1=(select count(*) from student s1
where s1.mark<s.mark);

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use values from other tables in update statements in ms sql server?

1040


What is sqlservr.exe - process - sql server (sqlex?press)?

1059


there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration

859


How to create user messages with print statements in ms sql server?

943


A trigger can reference objects outside the current database? State true or false.

948


Do you know what are the steps to process a single select statement?

920


Why does sql studio use a single registered database repository? : sql server management studio

956


In case you have filters in your report, when filters will be applied in cached report instance?

104


What are the disadvantages of merge replication?

1309


How do you use a subquery to find records that exist in one table and do not exist in another?

992


What is truncate table?

892


Describe different Processing Modes offered by SSRS?

232


Explain stored procedure?

987


Does index slows down insert statements?

940


Why should we go for stored procedures? Why not direct queries?

1029