2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 06:18:05 +02:00
LaTeX-examples/documents/musterloesung-db-2012-09-24/d2c1.2.sql
2013-07-30 12:52:22 +02:00

5 lines
188 B
SQL

SELECT f1.person2, f2.person2
FROM FriendshipSymmetric f1
JOIN FriendshipSymmetric f2 ON f1.person1 = f2.person1
WHERE f1.person2 != f2.person2
AND f1.person1 = <id>;