Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Get not first not null value from table

$
0
0

Hi,

I have a table in which data is something like this

IDName1Name2Name3Name4Name5Name6
1a
2b
3c
4h
5k
6l

m

 

Now i want to create a table which contain ID column and new column which contain first non null values from column Name1,Name2, Name3, Name4,Name5,Name6

output will be like that :

IDName
1a
2b
3c
4h
5k
6l



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>