I'm working with a 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 is 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'm using SQL Server.
Notice that in the Status column I have 04 different types of returns. I would like to display each return that was different, in a specific column, as if there were another 04 columns: Status 01, Status 02, Status 03, and Status 04.
Status 01 displays: Draft;
Status 02 displays: Awaiting correction,
Status 03 displays: Fill in next step;
Status 04 displays: Waiting for correction;