• A followup question: if i only need the years span of 2000-2050, how do i select them instead of

    SELECT TOP 97199 ROW_NUMBER() OVER(ORDER BY (SELECT NULL)) FROM CTE5

    Thanks