Просмотр исходного кода

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

tarfeef101 6 лет назад
Родитель
Сommit
4e9b847608
1 измененных файлов с 7 добавлено и 0 удалено
  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
+)