Ollie H
asked on
Athena AWS SQL
HI,
Hi I have done some calculations and have all my results in one row across a number of columns.
Percent 1 percent 2, percent3
I would like to pivot these so i have 2 columns,
Percents. Total
Percent1 0.64
Percent2 0.22
Etc
Hi I have done some calculations and have all my results in one row across a number of columns.
Percent 1 percent 2, percent3
I would like to pivot these so i have 2 columns,
Percents. Total
Percent1 0.64
Percent2 0.22
Etc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
You could also use CROSS APPLY with UNION ALL to convert the columns:
Open in new window