Coit20247 database design and development assignment

Assignment Help Database Management System
Reference no: EM133061459

COIT20247 Database Design and Development - Central Queensland University

1. 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 therelation.
- 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,DateOfBirth)

i. The primary key is StudentID which identifies a student. There will be one student name per Student ID because only one nameis recorded for each student. Even though astudent may have multiple addresses (e.g. a home address and a work address), the case studystates 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 birthfor each student. Thus, there are no repeating groups. Hence, this relation is in 1NF.

ii. 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 notguaranteed to be unique.This means that Student ID functionally determines every other attribute inthe table. The candidate key, StudentId, is a simple and single valued attribute. Therefore, no partial dependencies are possible. Hence, the relation is in 2NF.

iii. Student 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 normalform.

2. Use MySQL Workbench to create the logical database model

Consider the E-R model on the theater booking as 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.

3. Relational database implementation using MySQL Server

Note: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.

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

In databases, a stored procedure is a piece of prepared SQL code that you can save, execute and reuse at any time. You are required to write two stored procedures as specified below:

a) Write a stored procedure that can be used to show the details of each operation theatre booking when it is confirmed. The details include the lease booking ID, booking date, theatre ID, room number, cost per day and total cost.

b) Write another stored procedure with a parameter that represents the theatre room. When the stored procedure is called, the value of parameter is passed to the procedure. The procedure will display the surgeon's name, his/her specialty, and the booking ID.

Information requests

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.

Note:Use enough sample data so that the output is produced by each query. Depending upon the data in your database, your query output will differ from the following outputs:

1. Obtain a listof ID and Name of support staff who have not been allotted to any lease booking as on date.

2. Display the number of lease bookings, if any, that have been done for each surgeon.

3. For each lease booking, display surgeon id, surgeon name and total amount of lease including break down costs.

4. For each lease booking, display lease booking id, total amount of lease, total amount paid as on date and pending (outstanding) amount.

5. Display the id and name of theatre(s) for which the most(the highest number of) lease bookings have been done as on date.

Report

MySQL Server doesn't come with a native Reporting tool. But it is very easy to create a Report by export the data source of a MySQL database to a third-party utility program (such as phpMyAdmin, dbForgeStudio, and Navicat etc.) or Microsoft Excel. As an exercise, we ask you to export the data source to Excel to create a simple report object showing the details of each lease booking and payment details. When the data source from MySQL exporting to excel, simply call and execute the first stored procedure as defined in the relational database implementation section on a sheet of the Excel, then import the data (due to the result of executing the stored procedure) to Excel. In addition, add a report header and display the total price of all bookings in a cell on the Excel sheet. (Note: when you install MySQL Server, if have not installed the component named mysql-for-excel-1.3.8, you need to download and install it separately. The installer is also available on the Moodle course website).

Your report will also show thedetails of each surgeon and his/her respective lease booking(s)and payment details. The report should show the surgeon's name, total charges for each lease, amount paid and outstanding amount (pending) details.

Implementation Report
You must also provide a short implementation report describing your experiences with this assignment. You need to discuss on the following:
1. Any one of the assignment tasks that was relatively difficult/complex to solve but has been successfully completed by you (you should mention the aspects from your database and should not write general report).

2. The problems that may arise when your database is in operation and suggestions to improve the database particularly table design, data entry,query formulations, etc.

Use the implementation report to demonstrate that you have thought carefully about the issues that arise when implementing a relational database.

Attachment:- Database Design and Development.rar

Reference no: EM133061459

Questions Cloud

Supply of loanable funds : The stock market during 1998 and the first half of 1999 showed substantial strength.
Find out the bond prices and interest rate : Recent news out of Washington has led to increases in real estate values. Assume that the increase is expected to continue and that bonds and real estate are su
Compute residual income using gross book value for each year : Annual depreciation is $17 million. Annual operating cash flows are $44 million. Compute residual income using gross book value for each year
What is the annualized percentage all-in-cost : What is the annualized percentage all-in-cost to Umaru Oil of financing the first $200,000 note due in March 1, 2011
Coit20247 database design and development assignment : COIT20247 Database Design and Development Assignment Help and Solution, Central Queensland University - Assessment Writing Service
Determine the number of common shares : Determine the number of common shares (a) issued, (b) in treasury, and (c) outstanding at the end of 2017
What is the value of an investor : What is the value of an investor's (well diversified) portfolio following a fall in S&P/ASX Index from 7300 to 6850, if initial portfolio value was $30 million
Expectation of future interest rates : -News comes out today that the economy is much weaker than expected. Hence, this changes the expectation of future interest rates. What will happen to U.S. Trea
Determine a forecast for the average weekly sales : 1. Determine a forecast for the average weekly sales in years 5 for season2.

Reviews

Write a Review

Database Management System Questions & Answers

  List the name of the project with the lowest budget

List the names, ages, and salaries of managers of a user-specified sex (male or female) working in a given department. You can assume that, while there are many departments, each department contains very few project managers.2

  Research the various database management system products

Research the various database management system (DBMS) products available for your scenario and compare the top contenders to highlight similarities.

  Create set of database tables of relational database model

Use MYSQL to create the set of database tables of the relational database model and complete the associated queries given.

  Data collection procedures and data analysis techniques

Specify the approach (qualitative or quantitative), research design, sampling strategy, data collection procedures, and data analysis techniques to be used.

  Create a database and exploring stored procedures in sql

Creating a Database and Exploring Stored Procedures in SQL Server 2008 Tutorial. Create a new sample database called MyDB. Create columns for ID, LastName, FirstName.

  Essay on data mining in warehouse architectures

Course: data mining. Require a 7 page essay on subjects: Warehouse Architectures: the paper requires to contain information about centralized, federated, and tiered data warehouse.

  Explain what is the nosql movement

Using the Internet or other sources to find two dominate Cloud DBMS vendors and their latest products. Give the URLs for these DBMSs. Explain what is the NoSQL movement. Find one "DBMS" that is NoSQL. Explain what is Vertia. What are the features of..

  Create a data model and implement it by creating database

Create a data model and implement it by creating database tables for the followingsystem. You will be graded on how well you designed the database for this proj

  Define why do we need an automated tool for sql injection

Write an essay discussing sqlmap, an automated tool for sql injection and database takeover in 500 words or more. Why do we need an automated tool for.

  How to improve the quality of datasets

Recommend at least three (3) specific tasks that could be performed to improve the quality of datasets, using the Software Development Life Cycle (SDLC) methodology. Include a thorough description of each activity per each phase.

  Draw the entity-relationship diagram

A customer is defined as a customer ID, name, address and a telephone number. Customers are served by employees.

  Create a database using professional principles

Create a database using professional principles and standards. Use a relational database software application to develop a database implementing the logical design into a physical design

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