[SOLVED] MIS 562 LAB 7 IN MYSQL: For Part 1 Q1, you don’t need to run SQL and no output is required.
For Part 1 Q2, be sure to include output
For part 2 running stored procedure, please refer to document under Announcement. You must include output for all three questions
[SOLVED] MIS 562 LAB 7 IN MYSQL: Part 1
Question SQL statement or Answer
SELECT
COUNT
(DECODE(SIGN(total_capacity-20), -1, 1, 0, 1)) “<=20",
COUNT
(DECODE(SIGN(total_capacity-21), 0, 1, -1, NULL,
DECODE(SIGN(total_capacity-30), -1, 1)))
"21-30"
,
COUNT
(DECODE(SIGN(total_capacity-30), 1, 1))
"31+"
FROM
(SELECT SUM(capacity) total_capacity, course_no
FROM section
GROUP BY course_no)
[SOLVED] MIS 562 LAB 7 IN MYSQL: Part 2