I’m looking for analytical function like PARTITION BY in MySQL (see the docs for more info)
Analytic functions compute an aggregate value based on a group of
rows. They differ from aggregate functions in that they return
multiple rows for each group.
Does it exist?
No, it is one of the main lack of MySQL, compared to others DBMS like MSSQL, Oracle, PostgreSQL. I strongly doubt to see Window Functions in MySQL in any future, especially after Oracle acquisition of MySQL …Update 04/2018
MySQL 8.0 now supports window functions.