I have a table say something like this:
column_a column_b
foo 1
bar 1
baz 2
I need to get this in my result set:
foo 1
baz 2
Thus, I need to select rows where the field column_b is distinct. I tried coming up with ways to do this by using a subquery with select distinct but no dice. I'm still kind of noobish at SQL.