I have student marks in a student table. I need second
highest mark .Then what will the query for this?

Answer Posted / jyoti bikash panda

select a.marks from student a where(select count(b.marks)
from student b where a.marks<=b.marks)=2

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is there a performance difference between two similar queries where one uses union and the other uses union all?

722


Explain filtered indexes benefits?

772


What are the built in functions in sql server?

656


What is trigger in salesforce?

673


What is application role in sql server database security? : sql server security

753






In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1717


How many cores do I need for sql server 2016?

670


List the types of recovery model available in sql server?

665


How to create a dynamic cursor with the dynamic option?

717


What is awe?

737


can a database be shrunk with users active? : Sql server administration

757


What is the difference between locking and multi-versioning?

720


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

710


Explain “row_number()” in sql server with an example?

717


How to find the list of fixed hard drive and free space on server?

782