Browse Source

filesystem on school pcs suck

tsdedhar 6 years ago
parent
commit
8bc5009732
1 changed files with 4 additions and 4 deletions
  1. 4 4
      a2/a2.sql

+ 4 - 4
a2/a2.sql

@@ -54,7 +54,7 @@ select snum, sname from student where year > 2 and snum not in
 (
   select e.snum from enrollment e where exists
   (
-    select c.pnum, c.deptcode, c.cnum, c.term, c.section from class c where
+    select * from class c where
     c.deptcode = e.deptcode and c.cnum = e.cnum and c.term = e.term and c.section = e.section and c.pnum not in
     (
       select pnum from professor where deptcode != 'CS'
@@ -68,9 +68,9 @@ teaching a course offered by a different department.
 */
 select deptname from department where deptcode not in
 (
-  select p.deptcode, p.pnum from professor p where pnum in
+  select p.deptcode from professor p where pnum in
   (
-    select pnum, term, deptcode from class where term = 1185 and deptcode != p.deptcode and pnum = p.pnum
+    select pnum from class where term = 1185 and deptcode != p.deptcode and pnum = p.pnum
   )
 ) order by deptname;
 
@@ -137,7 +137,7 @@ The percentage of professors in pure math who have always taught no
 more than a single course in any given term. (Note that a percentage
 should be a number between 0 and 100.)
 */
-(select count(*) from professor p where deptcode = 'PM' and pnum in
+select count(*) from professor p where deptcode = 'PM' and pnum in
 (
   select c.pnum from class c where c.pnum = p.pnum and c.pnum not in
   (