문제

i have list of 100 students with there total marks and names.Based on this mark give rank to each students. i need to find the names of those students whose rank between 10th rank to 20th rank. students having rank 10,11,12...20 in the ascending order.

도움이 되었습니까?

해결책

Try this:

SELECT studentName FROM studentTable ORDER BY totalMarks DESC LIMIT 10, 10;

다른 팁

try this:

 SELECT <name> FROM <tablename>
 WHERE <rankfieldname> BETWEEN 10 AND 20
SELECT `studentName` FROM `studentTable`
WHERE `rank` BETWEEN 10 AND 20;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top