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 / maheswar reddy s

select top 1 * from (select top 2 marks from student order by marks desc)a order by marks

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

938


What happens if null values are involved in bitwise operations?

1078


What does asynchronous call backs means?

1225


Can you force a query to use a specific index?

989


How to drop existing indexes in ms sql server?

1130


What is SQL Azure Firewall?

136


How to end a stored procedure properly in ms sql server?

1144


How to use “drop” keyword in sql server and give an example?

1193


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

961


When a primary key constraint is included in a table, what other constraints does this imply?

1021


How use inner join in sql server?

1187


How to rename databases in ms sql server?

1259


Explain the benefits of user-defined functions?

1122


How to create a login account in ms sql server to access the database engine using "create login" statements?

1195


What are rest-style architecture's?

172