SQL Server 结果集特殊处理

图片说明
上图是查询出来的结果集,
有没有什么办法转换成下图的结果
图片说明,请大家多多指教,小弟不胜感激

(select 第一列 as a from 表 where 第一列 <> NULL)
union
(select 第二列 as a from 表 where 第二列 <> NULL)
union
(select 第三列 as a from 表 where 第三列 <> NULL)
union
...
(select 第六列 as a from 表 where 第六列 <> NULL)

select
CASE
WHEN 列1 is not null THEN 列1
WHEN 列2 is not null THEN 列2
WHEN 列3 is not null THEN 列3
WHEN 列4 is not null THEN 列4
WHEN 列5 is not null THEN 列5
WHEN 列6 is not null THEN 列6
ELSE NULL
END
from TABLE1

select isnull(列1,isnull(列2,isnull(列3,isnull(列4,ISNULL(列5, 列6)))))
from cnkis.dbo.lie