I have a following table,
Code Desc Curr_Year
-------------------------
AB XYZ 2019
And I am looking for a SQL query which repeats the same row from year 1993 to 2019.
The output should look like this:
Code Desc Curr_Year Inc_Yr
---------------------------------
AB XYZ 2019 1993
AB XYZ 2019 1994
AB XYZ 2019 1995
AB XYZ 2019 1996
. . . .
. . . .
AB XYZ 2019 2019
I am using SQL Server 2012.
I am not a SQL expert and really struggling to get this done.
Any help would be greatly appreciated.