Sqlserver
 sql >> Datenbank >  >> RDS >> Sqlserver

MSSQL Row_Number() over(order by) in MySql

set @row:=0;
SELECT 
  @row:[email protected]+1 as row_numer,
  NAME, 
  SUM(donationvalue) as total 
FROM tbl_pdm2k10_Donations
GROUP BY NAME
ORDER BY total desc