D
D
de_iiah_teji9_iiace2017-08-28 14:51:32
SQL
de_iiah_teji9_iiace, 2017-08-28 14:51:32

How to get non-unique values?

How to get non-unique records of the objs table by the id field, so that they can be deleted later, for example?
I try select id from objs group by id having count(*) >1, but it does not display anything, although there are such entries.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2017-08-28
@d-stream

having count(*) > 1
by the way, removing not all "duplicates", but only N-1 will not be such a trivial task -)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question