0
I am working with some data in a table, in which I made a SELECT that one of the columns returns the status of the processes that are in progress in our queue. The data in this column are for example: "In progress", "Completed", "Canceled".
I need to divide these returns into 03 columns, so that:
Coluna 01 retorne: "Em andamento"
Coluna 02 retorne: "Concluído"
Coluna 03: "Cancelado"
I am using SQL Server.
Note that in the Status column I have 04 different types of returns. I would like to display each return that is different, in a specific column, as if there were more 04 columns: Status 01, Status 02, Status 03 and Status 04.
Status 01 displays: Draft;
Status 02 displays: Awaiting correction;
Status 03 displays: Fill next step;
Status 04 displays: Awaiting correction;
It was not clear to me the return you want, could add in question 1 example of how you want the data.
– Barbetta
You want the lines of each status to return the processes that have that status Or it would be a computer How many processes have each status?
– Barbetta
Show the table structure with some sample data. If possible, create a fiddle here: http:/sqlfiddle.com/
– Ricardo Pontual