I have this query in PostgreSQL:
select p1.id, p2.id, p1.title, p2.title
from publication "p1", publication "p2"
where p1.title = p2.title and p1.id <> p2.id
The problem is that it returns more data than I need:
id id title title
3456 5678 Ulysses Ulysses
5678 3456 Ulysses Ulysses
234, 345 Das Kapital Das Kapital
345 234 Das Kapital Das Kapital
I only need rows 1 and 3, or rows 2 and 4.