How to Use ROW_NUMBER in SQL to Count Only Distinct Values

Click a thumbnail to watch in a lightweight modal. (No downloads — view only.)