-2

I'm using MySql 5.0 as i search the internet i can see many people talking about the rank function but as i try it on MySql 5.0 which I'm using it doesn't really work. For example:
SELECT RANK() OVER (order by total_time desc)as rank , id ,first name ,last name from user_tbl;
But this line of query doesn't work

Shadow
  • 32,277
  • 10
  • 49
  • 61
Suni
  • 23
  • 3

1 Answers1

0

MySQL does not support RANK() function, or any of the other analytic functions supported by other databases like Oracle and SQL Server.

spencer7593
  • 103,596
  • 14
  • 107
  • 133