Tidy Numbers solutions

Tidy Numbers was solved using SQL by 2 contestants. Solution sizes: average 808 bytes (shortest: 537; longest: 1080).