Question: Database computer science Part 3 CRUD Operations Create 1 tSQL script file and include the following CRUD statements. Call it Assignment 3 _ CRUD.sql .

Database computer science
Part 3 CRUD Operations
Create 1 tSQL script file and include the following CRUD statements. Call it Assignment3_CRUD.sql. Dont forget about the comments block from Part 1
RAISERROR (N'Question %s for CRUD Operations', -- Message text.
10,-- Severity,
1,-- State,
'Q1',--First Argument
NULL, -- Second Argument
NULL); -- third argument.
Create Statements
Q1. Provide an insert statement to add a new student with these attributes
StudentID 101
StudentName John Doe
Major Computer Science
Q2. Provide an insert statement to add a new course & instructor with these attributes
InstructorID 102
InstrctuorName Jane Doe
InstructorLocation Old Main
CourseNum 505
CourseName Test CourseName
Q3. Provide an insert statement to enroll a student in course with these attributes
StudentID 101
InstructorID --102
Winter 2024 Introduction to Databases
CourseNum 505
Grade A
Q4. Create a grade report for this student
Update Statements
Q5. Provide an update statement to update InstructorName to Janet Doe
Q6. Provide an update statement to update Student Major to Engineering
Q7. Create a grade report for this student. Replicate the script from Q4.
DELETE Statements
Q8. Create a grade report for all students in this database
Q9. Pick one of your test data students and provide a delete statement
Q10. Create a grade report for all students in this database replicate from Q8

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 Databases Questions!