Reputation: 25
I want to take only one value from these matches values in one column and put it in select
SELECT company FROM `main_fore` ORDER BY `fore_id`
Upvotes: 1
Views: 147
Reputation: 1269773
Are you looking for select distinct
or group by
?
SELECT company
FROM main_fore
GROUP BY company
ORDER BY MIN(fore_id)
Upvotes: 1