I want to know what all the existing values of a field are.
In SQL that would be something like:
SELECT DISTINCT fooFROM bar
SELECT DISTINCT foo
How might I do this with salesforce's SOQL?
Use Group by:
SELECT fooFROM barGROUP BY foo
GROUP BY foo