Postgres Row Number Partition By In Mysql Which Command