I have the following table, but you do not know if it is possible to derive some of the columns from the table:
CREATE TABLE
INSERT INTO
INSERT INTO
INSERT INTO
select * from
id Area grouping task_1 task_2
10 A HighNeeds 1 10
10 B HighNeeds 1 12
12 C Non HighNeeds 2 14
What I'm trying to get is:
-------------------------------------------------
id Area Tasks HighNeeds Non HighNeeds
10 A task_1 1 NULL
10 A task_2 10 NULL
10 B task_1 1 NULL
10 B task_2 12 NULL
12 C task_1 NULL 2
12 C takk_2 NULL 14
I mainly try to keep the columns IDand Area, but the columns of data and grouping tasks are grouped.
source
share