Im assuming Col1 needs to correspond with Col2 from the same row.Since we need to tie the columns together as a pair its written a bitdifferently but using the same concept./*Representation of your existing table:*/DECLARE @YourTable TABLE ( Col1 VARCHAR(5), Col2 VARCHAR(9) )INSERT @YourTable ( Col1, Col2 )SELECT 'S1756', '61745ML43' UNIONSELECT 'S1767', '36228CTH6' UNIONSELECT 'S1769', '361849F56' UNIONSELECT 'S1770', '61745MQ89' UNIONSELECT 'S1890', '59022HEX6' UNIONSELECT 'S2117', '07383FYH5' UNIONSELECT 'S2113', '61745MT45' UNIONSELECT 'S2116', '929766C43' UNIONSELECT 'S2120', '929766W58'SELECT colFROM ( SELECT CAST(Col1 AS VARCHAR) AS col, rownbr, 0 AS listid FROM ( SELECT row_number() OVER ( ORDER BY Col1, Col2 ) AS rownbr, Col1 FROM @YourTable ) a UNION SELECT CAST(Col2 AS VARCHAR), rownbr, 1 FROM ( SELECT row_number() OVER ( ORDER BY Col1, Col2 ) AS rownbr, Col2 FROM @YourTable ) a ) aORDER BY rownbr, listid DESC