I have table below:
Col1 Col2 Col3 Col4 Col5 Col6 Col7
=====================================================
XYZ GH JY IOP
GH TY HGF
TR OPY
I want to write a SQL query which will check for NULL
values in each row and display the column name which has NULL
values into a new column named 'Missing values'.
So the output will look like:
Missing Value
=============
Col2,Col5,Col7
Col3,Col4,Col5,Col6
Col1,Col2,Col4,Col6,Col7