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 analysis service repository?

714


What are the basic functions for master, msdb, model, tempdb and resource databases?

752


Do you know the cursor optimization tips?

747


Explain about integration services of Microsoft SQL server?

782


How do I completely remove sql server instance?

781


What is ssl in sql server?

749


What happens to a statement batch if there is a compilation error?

699


How do you delete duplicate rows in sql server?

662


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

772


what are the reporting service components in SSRS?

139


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?

845


What information is maintained within the msdb database?

727


What is the maximum length of an alert name?

777


When we should use and scope of @@identity?

722


Explain about local stored procedure?

706