Have a code in MSSQL
SELECT TOP 100 PERCENT Acct, Currency, COUNT(Name) AS NB FROM Details GROUP BY Acct, Currency
Pl