List all details of all the records in the customers table

Assignment Help Database Management System
Reference no: EM131391254

Assignment: Database Management Systems

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.

Timelines and Expectations

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

BHE Holdings 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 provide answer 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 to tables. You are required to insert sufficient data to test the reports given below.

To implement the database

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

a. Table names
b. Attribute names and field types (as required by XAMPP)
c. Primary and foreign keys identified

2. Create a text file called nnnn_create.sql (where nnnn is your student number). The file should include:

a. The SQL statements to create a database called BHE_Holdings_nnnn.txt (where nnnn is your student ID)
b. The SQL statements to create the tables and the relationships between them.

3. Create a text file called nnnn_insert.txt (where nnnn is your student number). The file should include:

a. 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 test the requirements. You should add at least one record to the existing test data for each table.

b. You are required to include your name as one of the customers (you don't have to have your address if you don't want to), but you MUST have your name and give your student id as the phone number.

4. Create a text file called nnnn_query.txt (where nnnn is your student number). The file should include the SQL statements necessary to display the following reports:

a. List all details of all the records in the customers table, sorted by postcode in descending order.

b. List all the titles of all the items in inventory with their supplier's name, email, phone number and postcode.

c. List all the actors who are deceased. Print their name as ONE column with a suitable heading, their date of birth and their date of death.

d. List all of the inventory by genre. Display the title and the genre of each.

e. List all the movies in the shop in alphabetical order. Include movie name, genre, classification, star rating and director name.

f. List all genres that have no titles.

g. Delete the all customers from Beaufort.

h. Change customer Mary Spring's name to Mary O'Sullivan.

i. List all the movie titles with their cast and their director. Print the name of the actors and the directors in one column for each with an appropriate title.

j. Insert a game with the title "Faraway Stars" (genre scifi) published by Moonstruck Games in 2016. The company is located at 1020 Oak Dr, Longwood, 3546, email [email protected], phone 4561327895, and contact is Jessie Fandango. The wholesale price is $38 and the mark up is 40%. The shop has 13 in stock and there is no discount applicable to this item.

k. List all the inventory with its title, its quantity on hand and its sales price (wholesale plus markup).

l. List every item in inventory with its title, genre and whether it is a game or a movie.

Your documentation should include:

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

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

3. A copy of the three files you are required to create included in the document (ie nnnn_create.txt, nnnn_insert.txt and nnnn_query.txt).

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

You should submit the following:

1. The documentation file described above EITHER as a MS word file or a PDF. If you are using a mac, please submit in a PDF so I can be sure of opening it.

2. The nnnn_create.txt file (where nnnn is your student number).

3. The nnnn_insert.txt file (where nnnn is your student number).

4. The nnnn_query.txt file (where nnnn is your student number).

Please note that the SQL files must be either .txt or .sql because I will be running them. If they are in a word or pdf file there will be extra characters that will prevent the files from running without errors and THIS WILL COST YOU MARKS!

The assignment is to be submitted via the Assignment 2 submission box in Moodle. This can be found in the Assessments section of the course Moodle shell.

Feedback

Feedback will be provided via the marked rubric with comments handed out in the tutorial 2 weeks after the submission date. The marks will also be available on FDL Marks at this time.

Attachment:- Assignment.pdf

Reference no: EM131391254

Questions Cloud

Find the period of the motion : The motion of a particle is described by the equation x 5=5 sin 2t + 4 cos 2t, where x is expressed in meters and t in seconds.
Research a common musculoskeletal sport injury : Research a common musculoskeletal sport injury. What is the cause, signs and symptoms, treatment, and prevention? Identify any patient education for injury prevention. Write two paragraphs and bring to class for discussion.
Find the largest allowable amplitude of the motion : Knowing that the coefficient of static friction is µs = 0.40 between the package and the table, determine the largest allowable amplitude of the motion if the package is not to slip on the table. Give the answers in both SI and U.S. customary unit..
Ms project familiarization : MS Project Familiarization Prior to completing the assignment, be sure to review the selected MS Project tutorial videos located in Week 2 of the Blackboard online course.
List all details of all the records in the customers table : ITECH 1006- List all details of all the records in the customers table, sorted by postcode in descending order. List all the titles of all the items in inventory with their supplier's name, email, phone number and postcode.
Should all employees be trained at once : There are several standardized training events in large organizations that are required annually or biannually. One of these is often sexual harassment. For this assignment, write a training plan for all employees in your firm to educate and devel..
Patient records accuracy and completeness : What measures are currently can be used to maximize accuracy and completeness of medical, drug and prescription records? What are the detriments of inaccurate and incomplete patient records?
How do people become infected with pinworms : How do people become infected with pinworms? How do they acquire an Ascaris infection?
What are the more important worm infestations : What are the more important worm infestations? What are their manifestations?

Reviews

Write a Review

Database Management System Questions & Answers

  Er diagram that you are unable to capture in the sql

ER diagram that you are unable to capture in the SQL statements and brie?y explain why you could not express them.

  Create one table representing normalized design

Create one table representing normalized design (3NF) for the important objects and their attributes in a textbook catalogue and accounting office at a university book store

  Create a new visio file for database design

BSBA BIS245A-3 - create a database model using MS Visio Database Model Diagram Template. The purpose of this iLab is to provide experience designing, with limited instructions, a simple database based on a list of data requirements and associated ..

  Evaluate the selection of a database management

Identify and describe three criteria that should be used to evaluate the selection of a database management system. Describe how an organization should use each criterion to evaluate database management system selection.

  Draw e-r diagrams and state the relationship

Draw E-R diagrams demonstrating each of the following relationships (create three meaningful examples for each relationship): One-to-One, One-to-many, One-to-Optional Many, Optional Many-to-One, Optional Many-to-Optional Many

  When you add a calculated field to a query it creates a new

When you add a calculated field to a query it creates a new

  Required to store the actual data location information

Datasets will be stored within a flat file (directory) system on either the PAK-IT, a central management system database is required to store the actual data location information as described by the PAK-IT, Inc. mission statement.

  Product in traditional costing system - bullie manufacturing

Determine the manufacturing overhead cost per unit of each of the company's two products under the traditional costing system.

  Perform large number of client-server requests into database

A small business with 100 computer workstations is installing a new local area network. All of the users perform the usual operations of e-mail. State your reasoning. Draw a floor plan for each If possible, show both floor plans on one page.

  Find all of the strong association rules

Find all of the strong association rules. Provide support, c onfidence, and lift for all the rule. Provide the reasons why the rules you selected are interesting.

  Produce an entity-relationship diagram

Produce an Entity-Relationship diagram which represents the above activities of the insurance company. Indicate the names and degrees of all the relationships. Give appropriate attributes for each entity shown, and identify the primary key for eac..

  Define the minimum and maximum cardinality

Don't worry about going through the normalization process at this point. Identify the appropriate relationships among the entities, and define the minimum and maximum cardinality of each relationship. Make some additional assumptions about the bus..

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