I have an output which looks like
| Title A | Title B | Title C | Title D | Title E | Title F |
| ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |
| Value 1 | Value 2 | Value 3 | Value 4 | Value 5 | Value 6 |
I need the output to be in this format:
Column A | Column B |
---|---|
Title A | Value 1 |
Title B | Value 2 |
Title C | Value 3 |
Title D | Value 4 |
Title E | Value 5 |
Title F | Value 6 |
3条答案
按热度按时间gpfsuwkq1#
I reckon you should change your original query to something along these lines:
tyu7yeag2#
Below Query will help you:
sh7euo9m3#
This is just a simple unpivot:
If you want dynamic one, there are plenty of answers available