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

try using this...
select top 1 from student where marks in (select top 2 from
student order by marks desc)

Is This Answer Correct ?    16 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the server name for sql management studio?

1025


What is a result set object returned by mssql_query()?

1158


What is self contained scalar sub query?

974


Can sql servers linked to other servers?

1046


What is master database? : SQL Server Architecture

1021


How to convert binary strings into integers in ms sql server?

1031


What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

1141


What is sub query and its properties?

974


How to loop through result set objects using odbc_fetch_row()?

977


Are resultset updatable?

954


What is dknf in normalization form?

1052


Tell me something about security and sql azure?

114


where can you add custom error messages to sql server? : Sql server administration

1120


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

985


What is schemabinding a view?

918