Forum Discussion

Mmrtlm's avatar
Mmrtlm
Copper Contributor
Dec 16, 2021

Finding top 5s of multiple actors

Hello there everyone,   so I've joined some date sets/tables and am almost done with my assignment, I "only" need to determine the top 5 categories of the 5 actors who play the most roles. The latt...
  • SergeiBaklan's avatar
    SergeiBaklan
    Dec 20, 2021

    Mmrtlm 

    If to imitate on such model

    first you group by actor_id without aggregation

    next sort each Data table by Qty (simplest by adding another column)

    and keep Top5 in resulting table

    Remove intermediate columns and expand latest one

Resources