Skip to content

Tag: sql-server

Ranking in SQL Server with a column change

Below is the original table that I want to rank according to the column changes by Install_Status and Dates for each product. Query: This SQL query returns the following results: However, I am not getting appropriate ranking for product A by date. My expected result is as below: Answer You seem to want to cou…