Postgresql Row Number Partition By In Mysql