Przeglądaj źródła

untested q1, not sure if it breaks the aggregation rules though

tarfeef101 6 lat temu
rodzic
commit
4e9b847608
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      a2/a2.sql

+ 7 - 0
a2/a2.sql

@@ -0,0 +1,7 @@
+select sname, snum from student where year = 2 and snum in
+(
+  select snum from mark where grade < 65 and deptcode in
+  (
+    select deptcode from department where deptname = "computer science"
+  ) having count(distinct section) > 1
+)