I have a query wherein I have week
, avg_pts
, avg_fgm
, avg_fga
, pct
, avg_fg3m
as columns. Is there a way wherein I could make weeks 1 to 7 into a column? And the current columns into rows?
Expected Output:
Stats Week1 Week2 Week3 Week4 Week5 Week6 Week7
Avg_pts 113.00 ... ... .. ..
avg_fgm 42.00 .... ... ...
avg_fga 88.00 .... ... ...
pct 0.51 .. .... ....
avg_fg3m 11.00 .... ... ....