Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

INDEXING

Hi All,

I have below query :

SELECT
MemberId
, RankId
, MAX(ChangedAt) AS LastDate
FROM TMRANKINGHISTORY
GROUP BY MemberId, RankId
ORDER BY MemberId

I want to improve performance.
What key index should I create ?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Barry Cunney
Barry Cunney
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of emi_sastra
emi_sastra

ASKER

Great.

Thank you very much for your help.