I\'m looking for analytical function like PARTITION BY in MySQL (see the docs for more info)
PARTITION BY
Analytic functions compute an aggregate valu
Although MySQL doesn't support analytic functions, MariaDB does. It's a drop-in replacement for MySQL and is created by the original developers of MySQL.