Using SQL Server 2000
I want to get the column name and column count where bit is 0,
table1
columnname status(bit)
apple 0
orange 1
graph 0
pine 1
....
I have more than 50 rows in table1, I want to get the columnname and count where bit is 0
Expected Output
apple
graph
...
...
Count - 22 (total column count where bit is 0)
How to make a query for the above condition
Need Query Help
Solutions
Output