Explorar el Código

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

tarfeef101 hace 6 años
padre
commit
4e9b847608
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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
+)