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

with temptab as
(
select row_number() over(order by substring(marks,1,2)) as
rownum,* from Student
)
select * from temptab where rownum=1

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which table keeps the locking information?

881


Can you explain what is the use of custom fields in report?

1002


How real and float literal values are rounded?

1096


What are page splits? : SQL Server Architecture

938


Explain primary key, foreign key and unique key?

936


whats new about truncate in sql server 2008?

2442


Explain the functionalities that views support?

1046


Are there issues when exporting SSRS reports into Microsoft Excel? When my users are trying to export a SSRS report into Microsoft Excel, one or two columns in the report appear to merge together. Why might this be?

184


What is an example of a primary key?

914


What is view in sql?

854


Explain the various types of concurrency problem?

1138


What is isolation levels?

965


What is inner join? Explain with an example?

1120


How do users use Report Builder with SQL Server data sources?

146


how would you troubleshoot blocking? : Sql server database administration

945