SELECT Country, DENSE_RANK() OVER (ORDER BY Country) AS [Dense_Rank result], RANK() OVER (ORDER BY Country) AS [Rank result] FROM CustomersDENSE_RANK - value is based on the item's uniqueness, same items have same values
RANK - value is based on the starting row number for the new item, same items have same values
No comments:
Post a Comment