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

How read data column wise if any null value then we have to read next column ...etc.

$
0
0

Hi,

How to read data column wise if any null value then we have to read next column ...etc.

I have Table

col1          col2       col3          col4      col5

1               1             2            null       5

2               3            null          3          4

null            4           5             null      7

6               5            null          5         null

5            null             9            null      null

first we have read col1,while reading col1 if any null skip from there then we start reading col2,any null skip ..etc

 result like below

                      resul t:

                       1

                       2

                       1

                       4  

                       5

                       2

                       5

                      4

                      7

Please help me...

Regards,

samba ch


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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