فهرست منبع

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

tarfeef101 6 سال پیش
والد
کامیت
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
+)