Physical implementation of the designed database

Assignment Help Database Management System
Reference no: EM133145828

COIT20247 Database Design and Development - Central Queensland University

Assessment: ER Mapping and Normalization

a) Map the ERD, from the sample solution, into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations meet 3NF. There is no need to show your working.

b) Select any one of your relations from the previous step, 1a), and perform the following:
• List all the functional dependencies exist in the relation.
• Demonstrate that the relation meets Third Normal Form (3NF).
For your help, an example for a Student relation's 3NF justification has been provided below:

STUDENT (StudentID, Name, Address,DateOfBirthThe primary key is StudentID which identifies a student.

1. The primary key is StudentID which identifies a student. There will be one student name per Student ID because only one name is recorded for each student. Even though a student may have multiple addresses (e.g. a home address and a work address), the case study states that there is a need to record the home address only for each student and hence there will be only one address for each student. There will be only one date of birth for each student. Thus, there are no repeating groups. Hence, this relation is in 1NF.

2. The primary key is StudentID. This is the only candidate key since student name is not guaranteed to be unique (two different students may have the same name). Student address is also not guaranteed to be unique. This means that Student ID functionally determines every other attribute in the table. The candidate key, StudentId, is a simple and single valued attribute. Therefore, no partial dependencies are possible. Hence, the relation is in 2NF.

3. Name cannot be used to functionally determine any other attribute in the table since two different students may have the same name: likewise, for address and date of birth. Therefore, there are no transitive dependencies in the table. Therefore, this relation meets the requirements of first, second and third normal form.

Question 2. Use MySQL Workbench to create the logical database model

Based on the solution of assignment 1 released, Use MySQL Workbench 8.0 CE to create a logical database model with the relations as in Part 1(E-R mapping and normalization), include specifying the primary keys, foreign keys, creating relationships as appropriate, and creating the E-R diagram. Save the file as fbdb.mwb.

Question 3. Relational database implementation using MySQL Server

Use MySQL Server to perform the physical implementation of the designed database from the above logical model and export the database file as fbdb.sql.In implementing the ER model provided, you must complete the following tasks:

• Create all the relations in a MySQL database. Consider each attribute in every table and make appropriate choices regarding data types & sizes, null allowed or not. Your choices should be appropriate for each attribute and should support data integrity.
• Indexing can speed up search for tables or queries. Review the guideline given in the textbook regarding set-up of index. You mustensure that at least the Name and Speciality attributes in the Surgeon table, as well as the Lease Booking IDattribute in the Lease Booking table are indexed.
• Populate the database with sample data of your own. You must include sufficient sample data to test your queries and report. Please note that the expected result of query questions as below should depend on the actual sample data populated.

You can also implement your database using MySQL Workbench or via Command Line Client. (Note: Week 6 lecture and tutorial provide the instructions how to export a MySQL database file)

Stored procedures

You are required to write two stored procedures as specified below:

(i) Write a stored procedure that can be used to show the details of customer whose name, either in full or in part, is passed into the procedure through a parameter.

(ii) Write a stored procedure that hastwo parameters. The first parameter is used to receive the partId value. When the stored procedure is called, the value for the first parameter will be passed to the procedure. The procedure will find out the relevant part priceand assign it to the second parameter so that the second parameter can be used to display the part price after the completion of the procedure.

Create queries to answer the following information requests. You should type the query codes manually using SQL view/editor under MySQL Server.

The marking process of the queries for information requests may also consider the effectiveness of your SQL statements that have been used in the queries. It is important that your SQL statement must reflect the correct business logic & SQL syntax. (Use enough sample data so that the output is produced by each and every query. The expected result is under each question. Your result should be in a similar format but may have a different content, depending on the data you populated in your database). Under MySQL Server, save each query question SQL statementas a file such as q1.sql, ..., q5.sql.

1. For each service, display its serviced, respective service type and the total service charges.
Hint: total service charges = parts used charges + labour charges

2. For each of the parts that is used in a service, calculate the part used charges and display as mentioned below:
Hint: part used charges = quantity * unit price

3. Which customers have not placed anywork order? Display their id, name and address details in ascending order of name.

4. For each work order, calculate the total charges and display accordingly.

5. Display the details of the service(s) that have the highest labour charges than that of the remaining services.

Implementation Report

You must also submit a short implementation report describing the following:
- any interesting or difficult aspect that you faced during the implementation of this database
- methodologies used to solve the super type and sub type relationship to form appropriate relations
- methodology used for solving query 1 or query 2
- Copy and paste the screen shotsshowing theoutputs produced by each of the queries (q1 to q5) along with the respective SQL query.

Attachment:- Database Design and Development.rar

Reference no: EM133145828

Questions Cloud

Make technologically advanced clothes : Cool Clothes is a textile company that is planning to make technologically advanced clothes, which are resistant to dirt and stains caused due to spills (ketchu
Determine the opportunities-threats facing the firm : 2. The environmental analysis helps to determine the opportunities, threats facing the firm, strength and weaknesses. EVALUATE, how the external environment hel
Why you disagree with the opposing theory : Theory X, the traditional control model, assumes that people dislike work and have little ambition. Theory Y assumes that, under the right conditions, individua
Estimating and costing construction work : Discuss the relevant statutory and authority requirements related to estimating and costing construction work in one hundred one hundred fifty words.
Physical implementation of the designed database : Relational database implementation using MySQL Server and Create all the relations in a MySQL database. Consider each attribute in every table
Major cyber security breach : In the event of cyberattacks, many companies are hesitant to report such attacks to authorities for fear of it being released to the news and potentially damagi
Sustainable competitive advantage : Foodpanda was one of the first major online food delivery platforms in India. Initially, it was present across major cities such as Delhi, Mumbai, Bangalore and
Manage the client involvement : Consider a project you have been involved in which the client took part in meetings and decision making. If you were to do the project again, describe how you w
Explain the teacher shortage : Explain the teacher shortage and what are the measures being taken to help alleviate this issue? What would you do different and what others solution would you

Reviews

Write a Review

Database Management System Questions & Answers

  What is required to define a well-posed learning problem

Write an algorithm called \Find-G" to nd a maximally-general consistent hypothesis. You can assume the data will be noise-free and that the target concept is in the hypothesis space.

  How to use xquery to retrieve xml and relational data

Submit a 3-5 page summary of your understanding on how to use XQuery to retrieve XML and relational data. Write the report basedon on your understanding.

  Create a database schema that supports the company business

Create a database schema that supports the company's business and processes. Explain and support the database schema with relevant arguments that support.

  Comment on the companys strategy on db backup and recovery

Which of the three application transactions must be made atomic (e.g., specify transaction boundaries) to prevent possible lost update?

  How does oracle process query

How does Oracle process this query? That is, what does Explain Plan tell you about how the query is processed - how would you recognize that the results were not correct?

  Write methods for outlier detection

Exceptions in credit card transactions can aid us fraudulent use of credit card. Suggest two methods for outlier detection.

  Provide the statement necessary to answer the given queries

List all salesperson numbers, salesperson names, and their salaries - List the addresses, balances, and invoice numbers of those customers who were sold merchandises in the database

  Retrieve data of students from past and current enrollment

Faculty members can also retrieve list of his or her advisees. Select one, and then retrieve that student's past and current enrollment information.

  Technology terminology for effective communication

Demonstrate written communication skills by understanding basic information communication and technology (ICT) terminology for effective communication and applying it within a business environment.

  Create new blank database in access and save using your name

Create the attributes (fields) for each table. Field names should be fully qualified (i.e. the table name should be included as part of the field name. Field names should not contain spaces (e.g. CustomerLastName)).

  Search for a record based on a particular field value

For each of the following queries, which of the listed index choices would you choose to speed up the query? If your database system does not consider index-only plans (i.e., data records are always retrieved even if enough information is available i..

  Display the final contents of each object''s field.

Write a program the instantiates a RealEstateSalesperson and a Girlscout object.

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