Преглед на файлове

Fixed a copy paste errors and filtered out all edges with form (x,x)

Before, there were edges in this form (x,x) included but they shouldn't be included.
Nilan преди 12 години
родител
ревизия
8d0fccde3a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      documents/musterloesung-db-2012-09-24/d2c2.sql

+ 2 - 1
documents/musterloesung-db-2012-09-24/d2c2.sql

@@ -4,9 +4,10 @@ FROM (
 ) f1
 JOIN ON
 (
-    SELECT personni FROM FriendshipSymmetric WHERE person1 = <id>
+    SELECT person2 FROM FriendshipSymmetric WHERE person1 = <id>
 ) f2
 EXCEPT
 (
     SELECT * FROM FriendshipSymmetric
 )
+WHERE f1.person2 != f2.person2