SELECT DISTINCT
  foo
FROM test
GROUP BY
  foo
