Question: Create a SQL Server Database, Tables and Stored Procedures that would satisfy the following requirements below: Create a table for Person records that have the

Create a SQL Server Database, Tables and Stored Procedures that would satisfy the following requirements below:
Create a table for "Person" records that have the following columns/fields.
a. Person_ID (Primary Key)
b. Last Name (Length: Maximum of 100 characters)
c. Given Name (Length: Maximum of 100 characters)
d. Middle Name (Length: Maximum of 100 characters)
Create a table for "Student" records that have the following columns/fields.
a. Student_ID (Primary Key)
b. Student Number (Length: Exactly 10 characters)
c. Year (Accepts values from 1-5)
d. Person_ID (Foreign Key)
e. Program_ID (Foreign Key)
Create a table for "Program" records that have the following columns/fields.
a. Program_ID (Primary Key)
b. Program Description (Length: Maximum of 200 characters)
Create the following Stored Procedures based from the requirements below:
a. Stored Procedure to "Add Person" record (last name, given name, middle name)
b. Stored Procedure to "Edit Person" record (last name, given name, middle name)
c. Stored Procedare to "Delete Person" record
d. Stored Procedure to "Vlew Person" specific record only
c. Stored Procedure to "Add Student" record (student number, program, year) provided that the "Person" record already exists
f. Stored Procedure to "Edit Student" record (student number, program, year)
Stored Procedure to "Delete Student" record
h. Stored Procedure to "View Student" specific record only
if Gtored Prodedure to tedit Program record (program descnption)
i. Gered Procedure to Delite Program recordA
Create a SQL Server Database, Tables and Stored

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!