Skip to content
Advertisement

Categorizing the columns of one row in SQL

I have a database table with records like the picture:

So each record contains columns related to points of the project lifecycle. I need to categorize those columns in order to know how many columns are ‘completed’ or ‘In Progress’ or ‘Not started’ I want the output to be organized in a simple table.

Example of record Image

Advertisement

Answer

Something like this:

output:

DBFIDDLE-MSSQL

DBFIDDLE-MySQL

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement