Below is the original table that I want to rank according to the column changes by Install_Status and Dates for each product.
Query:
;WITH CTE