Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Description. Suppose you are given the following database for keeping track of grades in this course. The data model from Homework #1 is significantly

image text in transcribedimage text in transcribed

Database Description. Suppose you are given the following database for keeping track of grades in this course. The data model from Homework #1 is significantly simplified where all gradable items (hw,quiz, exams) are combined into a single relation. Similarly all grades are also combined into a single relation) students(rin, fname, lname, email, optin date, optout date) gradables(gid, gtype, label, given date, duedate, maxgrade, points, nextg-id) grades(rin, gid, submission date, grade) Each student may have an opt-in date, if there is no date (i.e. the value is NULL) then the homeworks are optional for this student. If there is an opt-in date and no opt-out date, then homeworks are required. If there are dates for both opt-in and opt-out, only the homeworks that have a due date within within the given dates are required All gradable assignments are stored in gradables. The gtype is one of 'quiz', 'hw', 'exam' 'finalexam'. The label is the name given to the gradable as a string such as 'Hw 1' or 'Exam 2' If the gradable is a homework, we store the gid of the exam that it is directly before in nextg-id. All grades are stored in grades which stores the grade for each student. All date fields are formatted as mon-day-year, e.g. 01-31-2016 Database Description. Suppose you are given the following database for keeping track of grades in this course. The data model from Homework #1 is significantly simplified where all gradable items (hw,quiz, exams) are combined into a single relation. Similarly all grades are also combined into a single relation) students(rin, fname, lname, email, optin date, optout date) gradables(gid, gtype, label, given date, duedate, maxgrade, points, nextg-id) grades(rin, gid, submission date, grade) Each student may have an opt-in date, if there is no date (i.e. the value is NULL) then the homeworks are optional for this student. If there is an opt-in date and no opt-out date, then homeworks are required. If there are dates for both opt-in and opt-out, only the homeworks that have a due date within within the given dates are required All gradable assignments are stored in gradables. The gtype is one of 'quiz', 'hw', 'exam' 'finalexam'. The label is the name given to the gradable as a string such as 'Hw 1' or 'Exam 2' If the gradable is a homework, we store the gid of the exam that it is directly before in nextg-id. All grades are stored in grades which stores the grade for each student. All date fields are formatted as mon-day-year, e.g. 01-31-2016

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

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

Answered: 1 week ago

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago