Skip to content

Instantly share code, notes, and snippets.

@lyndsysimon
Created October 20, 2016 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lyndsysimon/810981e5551c71e6144148928da5ae52 to your computer and use it in GitHub Desktop.
Save lyndsysimon/810981e5551c71e6144148928da5ae52 to your computer and use it in GitHub Desktop.
MySQL Column Normalization

table source

id first_value second_value
0 0 0
1 0 1
2 1 0
3 1 1

desired output

id value
1 second
2 first
3 first
3 second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment