diff_months: 18

COMP1711-8711 Data Modelling Assignment

Flat 50% Off Order New Solution
Added on: 2022-10-28 06:14:54
Order Code:
Question Task Id: 0
  • Subject Code :

    COMP1711-8711

  • Country :

    Australia

  1. General Specification

    1. Derive relations from the supplied Entity-Relationship Diagram given below into a logical model representation in terms of the relational data model. Identify a primary key for each relation and subsequently all foreign keys.

You need to use the database description language (DBDL) as described in Chapter 17 of the textbook, for example

 

You also need to justify the reasoning behind the derivation (e.g. why does it contain a foreign key, can the foreign key be NULL, why has a particular ON UPDATE been chosen, etc.), for example

 

Client is a strong entity. The composite attribute name has only its constituent simple attributes fName and lName listed. prefType has been merged into the Client entity from the Preference entity from a 1:1 States relationship with mandatory participation on both sides. staffNo has been posted into the Client relation from a 1:* Registers relationship where Client was the child and Staff was the parent. staffNo is NOT NULL as Client has mandatory participation in the Registers relationship. UPDATE CASCASE was chosen to update staffNo whenever the attribute changes in the Staff table. DELETE NO ACTION has been selected to stop Staff being deleted without first updating Client.

 

b) For simplicity lets assume that we have the following entities in our conceptual model( only for attempting this part) : Vehicle and Booking 

We now want to validate our conceptual model through normalisation. List the functional dependencies and translate the conceptual model to 3NF. Show each step, using guidance from chapter 14 of the book and the lecture.

  1. Vehicle: Convert this table to 3NF

depotID

address

phone

regNum

typeID

fleetNum

colour

make

model

doors

body

trim

20

IST

Flinders

5000

1400111111

1300111111

ABC001

AQ51

100

Blue

Audi

Q5

4

SUV

Standard

30

Tonsley Flinders 5500

555111444

555111444

3100200505

DEF003

AQ51

100

Red

Audi

Q3

4

Small SUV

Sports

20

IST

Flinders 5000

1400111111

1300111111

XYZ200

MCX2

200

Gold

Mazda

CX30

4

SUV

Luxury

30

Tonsley Flinders

5500

555111444

555111444

3100200505

WXY350

HAC3

300

Silver

Honda

Accord

4

Sedan

Standard

  1. Booking: Fill some dummy data (about 4 rows) and convert this table to the 3NF

 

BookingID

HiredDate

InsuranceID

InsuranceCost

PolicyType

startDate

hireDays

ClientID

ClientPostcode

 

(c) Translate your answer to (a) into SQL (in a file .sql) and build the database using capabilities of SQLite. Include the relevant DROP statements and specify ALL primary and foreign keys. If you want to demonstrate ISO SQL that is not available in SQLite than include as a comment, but ensure that you have correct, runnable SQLite database as well. You also need to populate your database (INSERT INTO …) with some sample data and perform some simple queries to ensure it works correctly.

  • Uploaded By : Katthy Wills
  • Posted on : October 28th, 2022
  • Downloads : 0
  • Views : 129

Order New Solution

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more