Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. List, for each quarter, the number of courses with fewer than 5 students (but at least one student) enrolled that quarter. The answer should

image text in transcribed

. List, for each quarter, the number of courses with fewer than 5 students (but at least one student) enrolled that quarter. The answer should have attributes {qtr, year, num}.

The university registrar database has the following schema: student: sid (string) course: cid (string) prerequisite: cid (string), pre_cid (string) record: sid (string), cid (string), qtr (string), year (integer), grade (integer) Relation student provides the ids of all students enrolled in the university, and course provides all offered courses. Relation prerequisite provides the prerequisites pre_cid for each course cid. Relation record indicates which courses were taken by each student in a given year and quarter (F, W, S), and the grade obtained (for simplicity, grades are provided as integers 4,3,2,1,0, corresponding to A, B, C, D, F). Assume that a class can only be taken

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

Determine the surface area and the volume of the conical solid.

Answered: 1 week ago