Postgres Select Row Number Mysql Interview