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 / siva prakasam

SELECT TOP (1) stuMark
FROM Student
WHERE stuMark < (SELECT MAX(stuMark) FROM Student)
ORDER BY stuMark DESC

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many clustered indexes can be created on a table? : Sql server database administration

1155


How to execute stored procedure and set temp table in sql server?

1045


How to populate a table in sql server?

965


What is the significance of null value and why should we avoid permitting null values?

989


How to change the name of a database user?

960


What are the difference between clustered and a non-clustered index?

1043


Why de-normalization required?

1008


What are the results of running this script?

932


Do you know the isolation level that sql server support?

965


What do you understand by a stored procedure?

1090


How can we get count of the number of records in a table?

954


What is difference between views and stored procedures?

992


What is fill factor and pad index?

1016


Explain filtered indexes benefits?

1000


What is join and name different type of joins?

1051