Lab Manipulating Data
Lab Manipulating Data
Lab Manipulating Data
3%
Instructions
1. First, work through steps 2-5 individually. Then arrange a time to come together as a small
group to create one solution based on the best individual solution to each problem. Further
refine the solution as a group if needed.
2. Review the physical model for Grand Hill College.
3. Using the Grand Hill College Database, write a single script that fulfills all the requirements
outlined in the Problem Set.
4. Compare your solution against the Marking Criteria.
5. See Brightspace for exact due dates.
6. Only one submission per group is required. Your submission should include:
a. One script file
b. One spool file showing all results
c. One attribution list that outlines the activities associated with completing this
assignment. A sample attribution list is provided on Brightspace.
Problem Set
Write SQL code to perform the following modifications to the Grand Hill College Database.
3. Add the following courses that Danny Faulkner has expertise to teach:
a. Course Code: APHY202, The Solar System, 5 credits
b. Course Code: APHY203, Nebula, 5 credits
c. Course Code: APHY204, Global Clusters, 5 credits
4. The Nebula Course has moved to the third semester, so its new course code is ‘APHY302’.
Make that change throughout the database.
INSERT INTO Course (CourseCode, CourseName, Credits, DepartmentNumber)
VALUES ('APHY302', 'Nebula', 5, 100);
UPDATE Instructor_Course
SET CourseCode = 'APHY302'
WHERE CourseCode = 'APHY203';
5. Remove Danny Faulkner (ID: 1001) and the record of his expertise. Leave the new courses
and the Astrophysics department in the databases.
DELETE FROM Instructor
WHERE FacultyID = 1001;
Marking Criteria
Needs
Adequate Good
Categories Improvement Score
2 3
1
Will work for all 2+ questions will 1 question will not Yes
not work for all work for all datasets /3
datasets
datasets
Total /12