1. SELECT F.ID, SUM(B.BAZ) FROM FOO AS F INNER JOIN BAR AS B ON B.FOO = F.ID GROUP BY F.ID ORDER BY F.STUFF ASC

  2. ????
  3. Profit!

Laugh damnit. Don’t analyse it.

See more posts about: humor | All Categories