Suppose a student column has two columns, name and marks. How to get name and marks of top three students.



Suppose a student column has two columns, name and marks. How to get name and marks of top three stu..

Answer / krishna

SELECT Name, Marks FROM Student s1 where 3 <= (SELECT COUNT(*) FROM Students s2 WHERE s1.marks = s2.marks)

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Database Testing Interview Questions

How to test database procedures and triggers?

0 Answers  


What is a trigger? How do you verify if a trigger is fired or not?

0 Answers  


How to test database manually?

0 Answers  


What are the different stages involved in database testing?

0 Answers  


How to verify the trigger is fired or not and can you invoke trigger on demand?

0 Answers  






What is cmmi and describe different levels of cmm?

0 Answers  


How we can avoid duplicating records in a query?

0 Answers  


How to check a trigger is fired or not, while doing database testing?

0 Answers  


How do you test whether the database is updated as and when an information are added in the front end?give me an example?

0 Answers  


Suppose a student column has two columns, name and marks. How to get name and marks of top three students.

1 Answers  


To manage and manipulate the test table what are the sql statements that you have used in database testing?

0 Answers  


What is load testing and give some examples of it?

0 Answers  


Categories