I Have three column called STG and MAP and SUB CAT MAP in my Table SP
STG MAP SUB_CAT MAP
1001 NULL 2000
1003 NULL 2003
1009 NULL 2013
2001 1002 NULL
2005 1004 NULL
2022 1011 NULL
Easch of them are related to each other .For example 1001 = 2000 and 1003= 2003 or 2022=1011. Now I need to Pull Two column from here where it gives me
CAtegory SubCategory
1001 2000
1002 2001
1003 2003
1004 2005
1011 2022
I have more than 10,000 records so I need some quicker way to solve this. Is there any best way to do this?