I have an example table:
produto | supermercado
----------------------------
1 | 1
4 | 2
6 | 1
5 | 1
8 | 2
7 | 3
I want to get all the existing supermarkets on this table, without picking up repeated numbers. The result would be:
supermercado
----------------
1
2
3
Disregarding repeat supermarkets. I could not even begin with a query
, because I do not know how to do it to get those results equal.