Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following Courses ERD represents courses and sections as offered at UNB. This ERD applies to Questions 2 to 7 . UNB offers courses in
The following "Courses ERD" represents courses and sections as offered at UNB. This ERD
applies to Questions to
UNB offers courses in a wide variety of subject areas, including the subject area codes CS
MATH, and ENGL, just to name a few. Those three codes represent the subject areas named
Computer Science, Mathematics, and English, respectively.
Each course in UNB's Undergraduate Calendar is in exactly one subject area and has a course
title eg 'Introduction to Databases'
A section is an offering of a course that takes place during a specific academic term, such as
Winter repWrite a SQL stored procedure called adjustCapacity that takes as input:
A section id
The desired capacity for that section
The procedure should update the capacity for the specified section. If there is an invalid section
id the procedure should generate an exception with a custom error code of and a
message of Invalid Section Id
Use the space provided below to write the adjustCapacity stored procedure.resented in this database by the code W
Write a SQL stored procedure called adjustCapacity that takes as input:
A section id
The desired capacity for that section
The procedure should update the capacity for the specified section. If there is an invalid section id the procedure should generate an exception with a custom error code of and a
message of Invalid Section Id
Use the space provided below to write the adjustCapacity stored procedure.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started