SQL Übungen Nordwind

This commit is contained in:
Krumel
2021-05-20 12:22:23 +02:00
parent 33eb1d984e
commit 3957e4cea9
3 changed files with 369 additions and 1 deletions

View File

@ -49,4 +49,23 @@ WHERE A_Stadt IN (
SELECT A_Stadt FROM tblabteilung
GROUP BY A_Stadt
HAVING COUNT(*) > 1
);
);
SELECT a2.* FROM tblabteilung a1, tblabteilung a2
WHERE a1.A_Stadt = a2.A_Stadt
AND a1.A_Nr != a2.A_Nr;