L
L
LebedevStr2016-03-15 00:39:41
MySQL
LebedevStr, 2016-03-15 00:39:41

How to set up a filter for unique values?

You want to filter out non-unique values ​​in a table.
There is a table of type
id | name | surname
--------------------
1 | 1595 | 380src2
| 1595 | 380brc
3 | 1596 | 380rcc
4 | 1596 | 380wcc
5 | 1597 | 380rcc
After the filter it should look like this.
id | name | surname
--------------------
1 | 1595 | 380src3
| 1596 | 380rcc
5 | 1597 | 380rcc
Remove duplicates from the "name" column.
There is a similar function in Excel`s - "Only unique records".
Interestingly, I did not find such a function in Navicat and dbForge.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey S., 2016-03-15
@LebedevStr

select * from table group by name ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question