From 8d0fccde3acde0b429412bdd4e1fc0e01a35204f Mon Sep 17 00:00:00 2001 From: Nilan Date: Sat, 27 Jul 2013 19:42:28 +0200 Subject: [PATCH 1/2] 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. --- documents/musterloesung-db-2012-09-24/d2c2.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documents/musterloesung-db-2012-09-24/d2c2.sql b/documents/musterloesung-db-2012-09-24/d2c2.sql index 025f563..5a944df 100644 --- a/documents/musterloesung-db-2012-09-24/d2c2.sql +++ b/documents/musterloesung-db-2012-09-24/d2c2.sql @@ -4,9 +4,10 @@ FROM ( ) f1 JOIN ON ( - SELECT personni FROM FriendshipSymmetric WHERE person1 = + SELECT person2 FROM FriendshipSymmetric WHERE person1 = ) f2 EXCEPT ( SELECT * FROM FriendshipSymmetric ) +WHERE f1.person2 != f2.person2 From 5eae2ce10073ce02b0ad30bac4ef4cfc9bf19532 Mon Sep 17 00:00:00 2001 From: Nilan Date: Sat, 27 Jul 2013 19:48:23 +0200 Subject: [PATCH 2/2] Ist von mir und Stefan, nicht Stephan :P --- documents/musterloesung-db-2012-09-24/Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/musterloesung-db-2012-09-24/Readme.md b/documents/musterloesung-db-2012-09-24/Readme.md index e821800..3fbeb57 100644 --- a/documents/musterloesung-db-2012-09-24/Readme.md +++ b/documents/musterloesung-db-2012-09-24/Readme.md @@ -1 +1 @@ -Auf Basis von [Nilans und Stephans pastebin](http://pastebin.com/JfDfrVMV) entstanden. +Auf Basis von [Nilans und Stefans pastebin](http://pastebin.com/JfDfrVMV) entstanden.