Transform the ERD in Figure Q3(a)(i) into a logical model. Assignment courseCode assignment Number H weight...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these mathematics questions
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
To demonstrate the ability to propose, implement, and query the database. Problem: MovinOn Inc. is a moving company that provides moving and storage services in California, Nevada, and Arizona....
-
Let S be the portion of the cylinder y = e x in the first octant that projects parallel to the x-axis onto the rectangle R yz : 1 y 2, 0 z 1 in the yz-plane. Let n be the unit vector normal to S...
-
What changes must be made in a typical resume to make it effective for computer scanning?
-
Balancing act. The tightrope walker in Figure P4.8 gets tired and decides to stop for a rest. During this rest period, she is in transnational equilibrium. She stops at middle of the rope and finds...
-
Heterogeneous reaction is defined as the reaction which requires (a) At least one phase to proceed (b) At least two phases to proceed (c) One initiator to take place (d) One negative catalyst to take...
-
The manager of the aerospace division of General Aeronautics has estimated the price it can charge for providing satellite launch services to commercial firms. Her most optimistic estimate (a price...
-
Vanessa has undertaken a significant exploration program in outback Australia that led to the discovery of a large deposit of silver. Robust geological assessments indicate the ore body comprises no...
-
There are THREE (3) questions in this section. Answer ALL questions in the Answer Booklet provided. Read the following case study and answer the questions. From a Grocery Stall to an Empire Mapping a...
-
For each problem, write a function that represents the vertical motion described. Use the following equation for the model h(t)=-16t2 + vot + ho Then GRAPH your function in Desmos and answer the...
-
Present the advantages and disadvantages of recruiting through an internal search.
-
Permanent layoffs should occur only as a last resort. Cutting staff affects morale, and ultimately the organization falters more. Organizations also have a social responsibility to their employees...
-
What specific constraints might prevent an HR manager from hiring the best candidate?
-
Explain the effects a learning organization may have on employees in todays organizations. What are the HRM implications of these effects?
-
How would you put together an ad that would attract the right people for the job?
-
Find the future value of the following ordinary annuity. Periodic Payment Payment Interval $1450 1 month Term 13 years Interest Rate 10% Conversion Period annually The future value is $ (Round the...
-
Difference between truncate & delete
-
David and Darlene Jasper have one child, Sam, who is 6 years old. The Jaspers reside at 4639 Honeysuckle Lane, Los Angeles, CA 90248. David's Social Security number is 577-11-3311, Darlene's is...
-
Leslie and Leon Lazo are married and file a joint return for 2012. Leslie's Social Security number is 466-47-3311 and Leon's is 467-74-4451. They live at 143 Snapdragon Drive, Reno, NV 82102. For...
-
Quince Corporation has taxable income of $450,000 for its 2012 calendar tax year. Calculate the corporation's income tax liability for 2012 before tax credits. $_________
-
The duties of a nozzle and a diffuser are (a) Opposite to each other (b) Identical to each other (c) Not comparable at all (d) None of these.
-
Nozzles and diffusers are widely used in (a) Heat exchangers (b) Refrigeration systems (c) Rockets and other space vehicles (d) None of these.
-
Pick out the correct relation between the \(\mathrm{COP}\) of a refrigerator \(\left(\mathrm{COP}_{\mathrm{R}} ight)\) and that of the heat pump \(\left(\mathrm{COP}_{\mathrm{HP}} ight)\) (a)...
Study smarter with the SolutionInn App