Sqlserver
 sql >> Base de données >  >> RDS >> Sqlserver

MSSQL Row_Number() sur (ordre par) dans 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