I need to write a rank query, but i have to do it on access. How do I translate the following query?
PERIODO,
SUM(IMP_ENTRATE_ATT) AS TOT_ENTRATE,
RANK89 OVER(PARTITION BY PERIODO ORDER BY TOT_ENTRATE DESC)AS RANK
FROM ENTRATE
ORDER BY RANK ```
e.i.
COMPANY | MONTH | REVENUES
'''
a | 01 | 100
b | 02 | 55
a | 02 | 230
c | 03 | 25
a | 01 | 70
b | 02 | 100
'''
I need to find the sum(revenues) per month per company
Access SQL has no ranking functions. You can use my function
RowRank
from GitHub: VBA.RowNumbers: