This is called table rotation. In your simple case, there are only two columns; in general, there may be 200 countries or so, in which case the turn becomes quite difficult.
There are many resources on the Internet that describe how to do this: Google for the "sql pivot table".
source share