I am confronted with the following table sales
:
country 2017-Q4 2017-Q3 2017-Q2 ... 1985-Q1
----------------------------------------------------------
Germany 100 200 75 10
Senegal 20 50 130 NULL
Belgium 150 66 22 5
I cannot query this efficiently, for instance "German sales from 2017-Q3".
I would like to reformat this table as follows:
country quarter sales
---------------------------
Germany 2017-Q4 100
Germany 2017-Q3 200
...
Belgium 1985-Q1 5
Can someone help me out on how to accomplish this?