Construct a logical data model by transforming the data

Assignment Help Database Management System
Reference no: EM132364472

Database Systems Assignment - Database Design & Implementation

This assignment concerns database conceptual modelling, logical design and implementation. It consists of developing an enhanced ER (EER) model (Conceptual data model - CDM), transforming the EER model into a relational data model (logical data model - LDM), forward engineering the relational model to produce a DDL script, creating and populating the database tables, and running SQL queries against the tables. The description of the Problem domain is given below.

1. Problem Domain

This question deals with a system used by an advertising agency called Shine to manage clients' advertising campaigns. Shine has a number of full-time staff members (such as directors, administrative personnel, accountants, account managers, technical personnel) and also a number of casual staff members (such as actors, models, graphic designers) who can offer specialized skills for each advertising campaign for its clients. Casual staff members do not have a permanent office in the agency and are contacted on their mobile phone. Shine has a hierarchical management structure where each staff member (except for the managing director) reports to a single supervisor within the company.

Shine deals with other companies as its clients. A record is kept of each client company, and each client company has one main contact person with Shine. Similarly, Shine nominates a full-time member of its staff - a director, or an account manager to be the contact for each client. Casual staff members are not eligible to be contact persons.

Shine runs advertising campaigns for its clients, and a record is kept of every campaign. Each campaign is based on a unique theme. One full-time member of Shine's staff, again either a director or an account manager, manages each campaign. Shine staff may work on zero, or one or more campaigns at a time. For each campaign they work on, they are answerable to the manager of that campaign, who may or may not be their own supervisor.

When a campaign starts, an estimate of the cost and finish date needs to be set and agreed upon. Each campaign includes one or more adverts. Adverts can be one of several types: websites, newspapers, magazines, TV, etc. Shine currently operates five studios and each advert may require a few bookings of studios for a number of hours on specific times and dates. Shine charges an hourly rate for studio bookings. The actual cost of a campaign is calculated from a range of information such as: cost of staff time, cost of studio time, cost of consumables etc.

The system also holds a number of fixed salary grades and annual and hourly pay rates of each grade, so that the cost of staff time on a campaign can be calculated from the timesheets that they fill out. Shine pays annual salaries to full-time staff but it charges hourly pay rates to its clients. Casual staff members are also graded and they are paid based on an hourly pay rate charged directly to the clients. Please note that (both full-time and casual) staff members can have different salary grades during the campaign period (for instance, when a staff member is given a pay rise right in the middle of a campaign). When the campaign is completed, an actual completion date and the actual cost are recorded and a single invoice for the whole campaign is sent to the client. The issue date and payment status of the invoice are also recorded. When the client pays, the date paid is recorded.

2. Task Specifications -

Task 1 -

Construct a conceptual data model in the form of an enhanced ER (EER) model for the above problem domain (see the Appendix for a sample). Identify and justify the use of, if any, generalization /specialisation, weak entity types, and attributes on relationships. This model should include entities, attributes, primary keys, the relationships among entities with cardinality and constraints. You can make any reasonable assumptions if there is a lack of information on particular aspects and/or you think there is ambiguity. If necessary, you may also introduce additional entities to ensure that every data requirement is captured. Note that you should not show the foreign keys in the EER model.

You can do this task through a data modeling tool such as PowerDesigner or a drawing tool such as draw.io. Add/paste the EER model into the Assignment1.doc file.

Task 2 -

Construct a logical data model (a relational data model) by transforming the conceptual data model of Task 1, showing the relations, their attributes, and foreign and primary keys. The relational data model can be presented either as a relation diagram or a relational schema (see the Appendix for samples).

You can choose to construct the relational data model either through MySQL Workbench or another tool such as PowerDesigner, or using a text editor. Add/paste the model into the Assignment1.doc file.

Task 3 -

List the functional dependencies (make necessary assumptions) for each relation in the relational data model of Task 2. Identify the normal form each relation is in and justify it according to the definition of the corresponding normal form (e.g., if a relation is already in 2NF and doesn't have any transitive dependencies, it is in 3NF).

Task 4 -

Create and run the DDL scripts to implement the relevant tables in the relational data model in MySQL. You can choose to do this either through MySQL Workbench by forward engineering the model or manually using a text editor. The DDL scripts will be saved in your Assignment1.sql file.

Create and run the DML scripts to insert records into each of your tables (there should be a minimum of 5 records per table). When inserting records into the tables, you need to make sure that the result of each SQL query (for Task 5 given below) will return at least one record.

The DML scripts will also be saved in your Assignment1.sql file. Take snapshots of the tables populated with data and add them to the Assignment1.doc file.

Task 5 -

Write and run the DML scripts for the following queries. Note that these SQL queries must be tested using the data you inserted in Task 4. The DML scripts will be saved in your Assignment1.sql file. Take snapshots of the tables of the query execution (query and result) and add it to the Assignment1.doc file.

Q1. List the titles and themes of the Campaigns' whose actual costs are below the average estimated cost of all the campaigns.

Q2. List the campaign titles and the number of their advertisements whose completion dates were earlier than their target dates.

Q3. List all the names of full-time staff members whose supervisor(s) were not the managers of the campaigns they worked on.

Q4. For campaigns with more than two staff members working on them, list the campaign title and the number of staff members who had salary grade greater than 2.

Q5. List all the full-time staff members who do not manage any campaigns.

Attachment:- Database - SQL Assignment File.rar

Verified Expert

The conceptual and logical model of the specified system has been developed in order to make the graphical view of the system.The model is presented with the help of the er diagram.The relational model of the system is also provided.

Reference no: EM132364472

Questions Cloud

What exchange ratio between the two stocks : What exchange ratio between the two stocks would make the value of stock offer equivalent to a cash offer of $300 million?
What is the synergy from the merger : a) What is the Synergy from the Merger? What is the estimate of the value of the newly-merged firm?
Submit an expression at interest to the it capstone project : BIT371 - Capstone Experience - Melbourne Polytechnic - submit an Expression at interest (EOI) to the IT capstone Projects Group (ITCPG) in accordance
What percentage of the population shares your basic position : Compare three of the following four types to yours: Faith and Family Left, Next Generation Left, Business Conservatives, Steadfast Conservatives.
Construct a logical data model by transforming the data : Macquarie University, Australia - ISYS224 Database Systems Assignment - Database Design & Implementation. Construct logical data model by transforming the data
Different types of company structures : Each type of business entity is affected by taxation. However, tax rates vary among the many different types of company structures, such as traditional
List some stakeholders for siemens : List some stakeholders for Siemens (company in the same industry as General Electric) and how they benefit.
Discuss some of the practical considerations : Discuss some of the practical considerations that managers are concerned with when they choose a firm's capital structure.
Calculate the buying price : Calculate the buying price, the price 12 months later and explain why the price has changed.

Reviews

len2364472

9/2/2019 12:54:31 AM

Submission - You must submit all the work in two documents named Assignment1.doc and Assignment1.sql through the electronic submission site on ilearn. If you modify your file(s) after submission, you may re-submit your assignment again before the due date. The Assignment1.doc file will be based on the template word file provided on ilearn. Fill out the details provided on the first page of the template. For each task, follow the instructions given and add your answers in. You are not allowed to submit hand drawn images for the models/diagrams in Tasks 1 & 2; you should use a modelling or drawing tool as mentioned above. If you happen to submit hand-drawn images, you will NOT receive any marks for it.

len2364472

9/2/2019 12:54:24 AM

If your images for any task lack clarity and /or they are not legible, you will not be given any marks. Tutors can zoom in to check the diagrams. But we will not be able to increase the quality of the image. Whatever is submitted is the final submission. So, please make sure your images are legible. Late submissions will be accepted but there will be a deduction of 10% of the total available marks made from the total awarded mark for each 24 hour period or part thereof that the submission is late. For example, 25 hours late in submission for an assignment worth 10 marks – 20% penalty or 2 marks deducted from the total.

Write a Review

Database Management System Questions & Answers

  Describe business rules that impact structure of database

Based on your research and / or common knowledge of a college and the information tracked by a college, describe the business rules that could impact the structure of the database.

  Modify data entry screen to capture and store information

To help customers locate the newest releases, add the date that the movie was first available. - Add the director's name. -  Add a customer rating of one, two, three, or four stars based on number of rentals.

  Produce a set of relations

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Requirements for the construction of a database system

Analyse requirements for the construction of a database system based on an understanding of performance issues and Gather and analyse data for database performance and tuning.

  Design and develop the below queries

Design and develop the below queries using professional principles and standards:A set of SQL Statements that returns all rows and all data for each table in your database.Two SQL Statements that return a subset of columns and a subset of rows using ..

  Create a sql query for list last and first names of director

List the last and first names of all directors who have directed only one movie. List the movie titles that won both best actor and best actress awards.

  Write all applicable business rules

CP5633 - Assignment - write a brief discussion of your solution, i.e. how you approached the modeling problem and any issues you may have encountered

  Identify the foreign key columns in the table structures

The problems below use the Customer, OrderTbl, and Employee tables of a simplified Order Entry database.

  List all pair of products names which are in same city

List the names of agents that placed an order for customer C003 or customer C006. List all pair of products names that are in the same city, along with their city name.

  Create a business recovery plan

You purchase raw materials from several vendors and employ five full-time employees. For what types of disasters would you need to create a business recovery

  What other backup strategies might mvch pursue

Should MVCH adopt continuous data protection (CDP) systems? Why or why not? What other backup strategies might MVCH pursue? Give reasons to your answers.

  The primary causes of the data breach

Case Study: Data Breaches and Regulatory Requirements, Describe the data breach incident and the primary causes of the data breach

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd