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 / ahmed

SELECT TOP 1 student marks
FROM(
SELECT TOP 2 student marks
FROM students_table
ORDER BY student marks DESC) AS emp
ORDER BY student marks ASC;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the boxing and unboxing concept in .net?

976


What are “lost updates”?

1043


What is oltp (online transaction processing)?

1057


What command would you use to create an index?

1107


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

1005


What is exporting utility?

1086


Why truncate is ddl command?

1116


What do you understand by mirroring and mention the advantages of the mirroring?

1114


What are the basic features of a trigger in ms sql server?

1265


What are the types of subscriptions in SQL Server replication?

1104


What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

1019


What is a covering index?

1042


How can you check the level of fragmentation on a table?

1087


Explain what is the use of custom fields in report?

957


Can you explain what are commit and rollback in sql?

986