A
A
Anton F2020-12-18 19:48:05
SQL
Anton F, 2020-12-18 19:48:05

How to find duplicate records in sql?

It is not possible to create a query to search for reverse duplicates in the database.
There is a table let's call it list with fields id | id_to | id_from

1 | 10 | 30
2 | 99 | 72
3 | 60 | 84
4 | 70 | 66
5 | 80 | 37
6 | 30 | 10

I need to find element 6 as it is a duplicate of element 1.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-12-18
@sshalun

JOIN tables with it according to the desired condition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question