Skip to content
Advertisement

is there anyway to display single column data into multiple columns

I tried to do it but it was impossible for me. the solution I need to display single column data into multiple column for the current table only. e.g column [status] 3 records {present,late,absent} to display 3 columns and single row, to prevent 3 rows

The result i want to display like this by grouping tid

Table structure

Advertisement

Answer

You can use conditional aggregation to pivot the dataset:

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