I have a set of table of data that looks like this:
[id],[testid],[date],[type],[score1],[score2],[score3],[score4]
I need it to look like this
[id],[testid][date],[type],[score],[scorecode] (score1)
[id],[testid][date],[type],[score],[scorecode] (score2)
[id],[testid][date],[type],[score],[scorecode] (score3)
[id],[testid][date],[type],[score],[scorecode] (score4)
The scorecode is dependent on which score(1-4), so the score1 row would need a scorecode of ACTMATH, score2 would need a different scorecode.
When I orginally built this, I used UNION ALL. However, I just want to make sure there's not a more efficient way of completing this.