Y
Y
Yana2018-01-03 13:28:01
SQL Server
Yana, 2018-01-03 13:28:01

How to output non-null columns in SQL query?

Good afternoon
There is a table:
id | Post |A1 |B1_1|B1_14|B1_23
----------------------------
1 |Master |null|1 |Null |Null
2 ​​| Head |1 |Null|1 |Null
How can I make sure that when "Master" is selected, only the B1_1 column (that is, the non-null column) is returned?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-01-03
@dimonchik2013

how are you doing?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question