Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The CS department liked your skills in SQL, so they decided to grant you full permission over the database. Students Name Netld Type VARCHAR(8)

The CS department liked your skills in SQL, so they decided to grant you full permission over the database. 

The CS department liked your skills in SQL, so they decided to grant you full permission over the database. Students Name Netld Type VARCHAR(8) FirstName VARCHAR(255) LastName VARCHAR(255) Department VARCHAR(255) Enrollments Name Type Netld VARCHAR(8) CRN INT Credits INT Score REAL Courses Name CRN Title Type INT VARCHAR(255) Department VARCHAR(255) Instructor VARCHAR(255) There will be a new course this semester. The CRN is 49498; the Title is 'Data Management in the Cloud'; the Department is 'CS'; the Instructor is 'Abdu Alawini'. Insert this new course to the Courses table. A student just transferred to the CS department, the student's NetId is 'deco27'. Update the student's Department to 'CS'. This student is now enrolling in CS411. The NetId is 'deco27'; the CRN is 31355; the Credits will be 4; the Score will be 0. Insert this new enrollment to the Enrollments table. Another course is only offered during fall. The CRN is 11451. Remove it from the Courses table. (Since this is happening before registration, we do not need to worry that there are students already enrolling in this course.) Finally, return the Net Id and CRN of all students enrolled in courses offered by the 'CS' department, in the ascending order of NetId and CRN. Notes and Hints: You should write multiple queries for this question. Remember to type ';' at the end of each query. Do not use views.

Step by Step Solution

3.29 Rating (167 Votes )

There are 3 Steps involved in it

Step: 1

1 Insert a new course to the Courses table INSERT INTO Courses CRN Title De... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

1. How does the idea of allostasis differ from homeostasis?

Answered: 1 week ago