0
I have an example table:
produto | supermercado
----------------------------
1 | 1
4 | 2
6 | 1
5 | 1
8 | 2
7 | 3
I want to get all existing supermarkets in this table, without picking up repeat numbers. The result would be:
supermercado
----------------
1
2
3
Disregarding the repeated supermarkets. I couldn’t even begin with a query
, because I do not know how to take these equal results.
select distinct field from table Where condition
– Igor