Selecting once where there are many
Hello,
I've seen the answer to this somewhere but have searched my head off. If I am selecting entries from a table, but there are multiple occurances of the same entry (such as "apple" being stored 5 times in a table), how do I select the repetitive entries only once?
Such as:
"select name from table where id = 1" results in:
"Apple, apple, apple, pear, grape, apple"
When what I want is:
"Apple, pear, grape"
Hope that's clear, and thank you!
|