I have a table which consists of a lot of columns and rows. The problem I have is that I want to select a certain column and get the row with all the non-null values.
My (so far) correct statement looks like this:
SELECT *
FROM table_name
WHERE col_1 = "Apotheken"
This returns the correct row with all its (non)values. But how do I get just the non-null-values out of this row? I could write something like this:
SELECT *
FROM table_name
WHERE col_1 = "Apotheken"
AND col_2 IS NOT NULL
AND col_3 IS NOT NULL
...
AND col_n IS NOT NULL
As I stated there are way too many columns. Is there a way to select just the columns with an actual value?
Thanks in advance!