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. Assignment courseCode assignment Number H weight due Date has Course courseCode courseName isFor enrols


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,- enrols relationship - delete cascade and update disallowed for actions on Student and delete/update disallowed for actions



  

Transform the ERD in Figure Q3(a)(i) into a logical model. Assignment courseCode assignment Number H weight due Date has Course courseCode courseName isFor enrols Figure Q3(a)(i) Submission student Id courseCode assignment Number date Submitted score submits Student student Id program Question 3 (35 marks) (a) (i) Transform the ERD in Figure Q3(a)(i) into a logical model. Assignment courseCode assignment Number H weight due Date has Course courseCode Bo courseName isFor enrols Figure Q3(a)(i) Submission student Id courseCode assignment Number date Submitted score submits Student student Id program (ii) 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 (0-9). 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

3.29 Rating (143 Votes )

There are 3 Steps involved in it

Step: 1

Solutions Step 1 Based on the information provided about the ERD and the table descriptions here are the SQL statements to create the tables in the order they should be executed Student table CREATE T... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students explore these related Mathematics questions