Designing and building a database application

Assignment Help Software Engineering
Reference no: EM131221804

Overview

For this assignment you will implement and query a database from a supplied ER Diagram and Schema. You will be required to write the SQL statements to create the database structures, to fill the database with data and to run queries on the data.

Learning Outcomes Assessed

The following course learning outcomes are assessed by completing this assessment:

- A1. design and implement a relational database using a database management system

- A2. utilise a query language tools and techniques to obtain data and information from a database

- K5. describe relational algebra and its relationship to Structured Query Language (SQL)

- S1. interpret entity-relationship diagrams to implement a relational database

- S2. demonstrate skills in designing and building a database application using a commercially available database management system development tool

- S3. use a query language for data manipulation

Assessment Details

FHTS Incorporated has provided you with a standard solution for the conceptual data model (the ER diagram). You have been commissioned to continue your role (in your capacity as a Database Management System consultant) and to write the SQL statements to create the database and its tables, add data, and to provide SQL solutions to some of their everyday queries. The database should be created based on the ER diagram provided at the end of this document. Some sample data are also provided to be used for inserting data into tables. However, you are also required to insert sufficient data to test the reports given below.

To implement the database

- Translate the ER diagram provided into a relational schema using the correct notations and standards for this course. It should include:

- Table names

- Attribute names and field types (as required by XAMPP)

- Primary and foreign keys identified

- Create a text file called nnnnnnnn-create.sql (where nnnnnnnn is your student number). The file should include:

- The SQL statements to create a database called FHTSnnnnnnnn (where nnnnnnnn is your student ID - e.g. FHTS30011111)

- The SQL statements to create the tables, including their primary keys, foreign keys and the relationships of the tables.

- Create a text file called nnnnnnnn_insert.sql (where nnnnnnnn is your student number). The file should include:

- The SQL statements to load sufficient data into each table you have created to test the queries given below. Sample data has been provided, but you will need to include further data to test the requirements. You should add at least one record to the existing test data for each table.

- You are required to include your name as one of the customers, (you can provide fake address details), but you MUST have your name and give your student id as the phone number.

- Create a text file called nnnnnnnn_query.sql (where nnnnnnnn is your student number). The file should include the SQL statements necessary to display the following reports:

- List all details of all the records in the customer table, sorted by their Last name in descending order.

- List all the customers by their first name and last name in one column, (ensuring a space between the names), with an appropriate title, followed by their phone number and then followed by the name and phone number of the company they work for. Sort this list by the company name in ascending order.

- List the first name, last name and email address of all customers.who are either/or both VIP or Frequent Flyers. (hint, check the fields with "yes" or "no"), Also list the CustVIP and CustFreqFlyer fields, changing their titles to "VIP" and "Frequent Flyer" respectively.

- List all of the VIP customers, with their first name and last name joined in the title, as "VIP Customer", followed by their years as a customer, and the money they have spent as a customer of FHTS. Hint, look at the sub type.

- List all frequent flyer customers who have made a booking, giving their first and last names, the number of frequent flyer points they have, followed by their frequent flyer rate points, then followed by a column that gives their frequent flyer discount. i.e for each frequent flyer customer on a booking perform the multiplication between their frequent flyer points and their respective frequent flyer rate per points, which is found in the FREQ_FLYER_DISCOUNT table. (This query will entail a number of joins). Also give the last column an appropriate name. Don't worry about duplicates found from the query, this is due to multiple bookings.

- List the staffId, first name and last name of all staff members who are supervisors, also including the ID and last name of each staff member who reports to them.

- Delete the customer Tim Canterbury.

- Change customer Rachael Bernard name to Rachael Jones.

- List all bookings that have flights to the United States. Include the Booking ID, Customer ID, FlightID, Flight Number, booking date and flight booking date,in the output. (Can you see any errors in the data for the bookings?)

- List all the bookings that don't contain flights to the United States. This time just list the Booking ID and Customer ID. Use the previous query as a sub-query here.

- Insert a new flight for Air France with the flight number "AF513". It will depart from the Melbourne airport with a destination to London Heathrow airport. Its departure date is set for 29th September 2016 and its arrival is set for the next day, 30th September 2016. It has a large flight capacity 520 passengers. The fixed flight fee will be $180. The distance is approximately 16,927 km.

- List all accommodation details for sites connected to locations with airports that have the last word "International" in its name.

Your documentation should include:

- A title page clearly stating your name and student ID and your tutor's name.

- A copy of the relational schema you have developed from the ER diagram provided.

- A copy of the three files you are required to create included in the document (ie nnnnnnnn_create.sql, nnnnnnnn_insert.sql and nnnnnnnn_query.sql).

- Full APA referencing of any resources you have used to complete your submission

Assessment Criteria and Marking Overview Tasks

1. Presentation
- Cover page indicating student name and number and tutor name.
- Page numbers included in report
- Index giving page numbers of various sections
- Overall presentation of the report
- Full APA referencing of all materials used and full disclosure of assistance from all sources including tutors and other students.

2 Revised Schema
- Any assumptions explained
- All tables included
- Data types correct
- Primary and foreign keys indicated and referenced correctly

3. Create Statements
- File runs with no error messages
- Database created correctly
- All tables created correctly
- All primary and foreign keys created correctly
- Any deletion anomalies corrected

4. Insert Statements
- File runs with no error messages
- Default data is inserted correctly
- Additional data for testing is inserted
- Student's name and number are included in customer file

5. SQL statements

Q a
- Correct syntax
- Correct table used
- Correct use of sorting statement

Q b
- Correct syntax
- Correct tables used
- Where statement correctly formulated and correct using of sorting statements

Q c
- Correct syntax
- Correct tables used
- Where statement correctly formulated

Q d
- Correct syntax
- Correct table used
- Where statement correctly formulated
- Correct indication of desired values

Q e
- Correct syntax and fields used
- Correct tables used
- Correct derived field and calculations
- Where statement correctly formulated

Q f
- Correct syntax
- Correct table used
- Correct use of the primary and foreign keys connections
- Correct answer given in the correct order

Q g
- Correct syntax
- Correct table used
- Correct result for deletion

Q h
- Correct syntax
- Correct table used
- Correct result for update

Q i
- Correct syntax
- Correct tables used
- Where statement correctly formulated
- Output formatted correctly

Q j
- Correct syntax
- Correct use of the sub-query
- Where statement correctly formulated
- Output formatted correctly

Q k
- Correct syntax
- Correct table used
- Inserts done in correct order with correct results

Q l
- Correct syntax
- Correct tables used
- Correct use of the wild card string and comparison
- Output formatted correctly

Attachment:- Dbms assignment.rar

Verified Expert

In this assignment, ER diagram for the Flying High Travel Service is provided. Together with it sample table values are given. Using Xampp the table are created using query, the data are inserted using Insert query and some of the complex well defined query result are extracted from the database.

Reference no: EM131221804

Questions Cloud

Can you construct the following multi feature cube : Multi feature cubes allow us to construct interesting data cubes based on rather sophisticated query conditions. Can you construct the following multifeature cube by translating the following user requests into queries using the form introduced in..
Discuss the reasons for heather poor performance : Discuss the reasons for Heather's poor performance (e.g. Is it a deficiency in declarative knowledge or procedural knowledge?). Recommend how to remedy the situation.
In addition to the actual financial statements : In addition to the actual financial statements, in an annual report of a public company there is the management discussion and analysis, the notes to the financial statements and the auditors report. Describe the purpose of each, and in your opinion ..
Sales and contribution margin ratios for the three products : Darth Company sells three products. Sales and contribution margin ratios for the three products follow: Product X Product Y Product Z Sales in dollars $ 40,000 $ 80,000 $ 200,000 respectively and Contribution margin ratio 35% 30% 25% respectively. Gi..
Designing and building a database application : Design and implement a relational database using a database management system - utilise a query language tools and techniques to obtain data and information from a database.
Compare the behavior of the interest rate : Compare the behavior of the interest rate under TR-S to its behavior under the basic Taylor rule. - Is TR-S a realistic description of central banks' behavior?
Contracting and bronson construction pay : Assume that both Archer Contracting and Bronson Construction pay their employees $18 an hour and each employee works 8 hours per day. Calculate the multifactor productivity of each firm. Now who is the most productive and what is the percent diffe..
Describe the five stages of the negotiation process : In the decision-making process, you must take into account several cultural variables. Describe one of the variables associated with risk tolerance and one of the variables associated with internal/external focus of control. Why are these importan..
Compute the availability of machine : A machine can operate for an average of 14 weeks before it needs to be overhauled, a process which takes 7 days. The machine is operated 6 days a week. Compute the availability of this machine.

Reviews

Write a Review

Software Engineering Questions & Answers

  Select one of the modularity concepts coupling and

select one of the modularity concepts coupling and determine in which phase of the software life cycle it is most

  Write a function playnovice

Write a function userPlay(marbles) that asks the user for the number of marbles that he or she would like to take and returns that number. The function should keep asking the user for the number of marbles if he or she takes more than half of the ..

  Explain the importance of software testing

Evaluate the issues and challenges associated with software engineering.  Compare and contrast software development process models.

  Create inheritance hierarchy for customer-s bank account

Create inheritance hierarchy which a bank might use to represent customer's bank accounts. All customers at this bank can deposit money into their accounts and withdraw money from accounts.

  What are some ways to motivate project teams

Are the ideas presented in the article "Using Earned Value Management Indexes as Team Development Factor and a Compensation Tool" applicable to your organization? Why or why not?

  Do you see conflict in looking at maintenance in both ways

Maintenance has been presented as both the final stage of the SDLC, and as a process similar to the SDLC. Why does it make sense to talk about maintenance in both of these ways?

  Business to business portals

As more businesses launch and depend on e-commerce and business-to-business portals, the importance of security will continue to increase. Research and discuss what you believe are the largest threats against network security, and what measures s..

  Creating a program using the move instruction

Create a program using the move instruction to manufacture the following results. Move the contents of register AX to registers BX, SI, and DS.

  Describe three common constraints on the design

question 1 discuss three common constraints on the design specifications for health care systems. why is each important

  How project visualization maps to architectural views

Choose one of the agile software development methodologies/processes and explain how changes can be managed in software development projects. Describe how project visualization maps to architectural views.

  Define software testing techniques

Describe the purpose and capabilities of the following software testing techniques dynamic testing, penetration testing and usability testing, being sure to explain their relative differences, similarities, shortcomings, and the degree to which t..

  Describe two major erp systems

Create a 7-to10-slide presentation comparing and contrasting two major ERP systems from different ERP software providers. You may use various sources including the companies' websites

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