I tried for hours and read many posts but I still can\'t figure out how to handle this request:
I have a table like this:
+------+------+ |ARIDNR|LIE
You can simply achieve it by
SELECT * FROM test WHERE ARIDNR IN (SELECT ARIDNR FROM test GROUP BY ARIDNR HAVING COUNT(*) > 1) GROUP BY ARIDNR, LIEFNR;
Thanks.