I'm trying to calculate some data but I need the RANK() function. Sadly, PhpMyAdmin doesn't have it.
And this is how the query should be
SELECT bom.bom_id, RANK() OVER (PARTITION BY earlier_bom.bom_id ORDER BY bom.bom_id) AS pathIndex FROM bom RIGHT JOIN earlier_bom WHERE [condition]
Using this example I should get the PathIndex column.
I already got the Depth and Parent ID, but I can't get the index, so if you know another option to create a query similar to rank function it would be apreciated!