I don't even know how to phrase this question to search it. Here's my table:
I want to put this into a table in MySQL that would look like this:
I have no idea how to automatically accomplish this. The actual table I'm using is too big to do manually like this example. Any guidance or help would be appreciated, thanks!