with cte as( select *,rank() over (partition by student_name order by marks desc) as rn from students) select student_name, sum(case when rn
@skilltechath0n26 күн бұрын
@apurvjadhav7995 Great! Keep learning :)
@amitkumarkumarsinghpiyush323Ай бұрын
Bro aap output ki jagah questions likh diya kro jo new h unke liye direct output smjhna thoda tough h
@skilltechath0nАй бұрын
@amitkumarkumarsinghpiyush323 Sure. Will make a note of it. Thank you for the suggestion :)
@ishanshubham8355Ай бұрын
select student_name, sum(marks) as marks from ( select *, dense_rank() over(partition by student_name order by marks desc) as rnk from students ) as m where rnk
@skilltechath0nАй бұрын
@ishanshubham8355 Continue practicing, Wish you all the success for your endeavours :)