Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Transform the ERD in Figure Q3(a)(i) into a logical model. Figure Q3(a)(i) Refer to the description of the columns and relationships and then code the

image text in transcribedimage text in transcribed

Transform the ERD in Figure Q3(a)(i) into a logical model. Figure Q3(a)(i) Refer to the description of the columns and relationships and then code the appropriate SQL statements to create the tables, derived from the ERD in Figure Q3(a)(i). You must use the same table names and the same column names as given in Figure Q3(a) (i) or your statements will be marked as incorrect. List your SQL statements in the order that they should be executed. Description for columns: - studentId is a whole number starting from 1000000 with step increment 1 and is auto-generated. - program is at most 50 characters and is one of these values: Accountancy, Finance, Information and Communication Technology, Business Administration. - courseCode is exactly 5 characters starting with two letters (A-Z) followed by 3 digits (09). - courseName is at most 50 characters long. - assignmentNumber is a running number for each course and can be generated with a trigger. - weight is an integer that is greater than 0 , - dueDate is a date at least one week after today's date. - dateSubmitted is a date with default value today's date, - score is a decimal number between 0 and 100 . - All columns are required except for dateSubmitted and score Constraints Refer to Figure Q3(a)(i) for the minimum and maximum cardinalities. - enrols relationship - delete cascade and update disallowed for actions on Student and delete/update disallowed for actions on Course. - has relationship - delete and update cascade. - submits relationship - delete cascade and update disallowed. - isFor relationship - delete and update disallowed

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

3. What are potential solutions?

Answered: 1 week ago