Implement and query a database from a supplied er diagram

Assignment Help Database Management System
Reference no: EM131836950 , Length: word count:1250

Assignment

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

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
Books For Everyone (BFE) is a company that sells books and e-books. The company 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 bfe_nnnn (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 to test the requirements. You should add at least one record to the existing test data for each table (you will lose marks if you only insert the sample data).

b. You are requiredto 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 thewholesalers, sorted by suburb in ascending order.

b. List all the titles of all thebooks in inventory with their wholesaler's name, email, phone number and suburb.

c. List all the authors who arebased in USA and who have a biography on file. Print their name as ONE column with a suitable heading, andshow the number of books written by the author in inventory.

d. List all of the inventory by category. Display the title and the category of each, sort in descending order of title.

e. List all reviews with reviewer name and review date and title of inventory item. Also Include booktitle, author name and surname. Order by reviewer name.

f. List all categories that have no inventory items.

g. Delete the all customers from postcode 3353.

h. Change the price of the inventory Item "A Brief History of Time" to $15.99.

i. List all the books and e-books with their authors. Print the name of the authorsand their roles in one column for each with an appropriate title.

j. Insert an e-book as follows:the title is"Astrophysics for People in a Hurry" (category Science) written by Neil deGrasse Tyson in 2017. The authoris based in USA, and no details are on file yet for this author. The e-book price is $18 for the Kindle version, and the abstract is: "What is the nature of space and time? How do we fit within the universe? How does the universe fit within us? There's no better guide through these mind-expanding questions than acclaimed astrophysicist and best-selling author Neil deGrasse Tyson.".

k. Find the fulfilled orders made since 1st July 2017. List customer name and surname, date of order, number of items ordered and total price.

l. Find the book which was ordered most often. List the author name and surname and date published.
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.Ensure that you ist any assumptions you have made.

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 - where nnnn is your student number).

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

Referencing: APA

Attachment:- ER Diagram.rar

Reference no: EM131836950

Questions Cloud

Coronary circulatory system : During coronary bypass surgery, a piece of vein is often removed from the patient's leg and surgically attached within the coronary circulatory system
Briefly describe how the secretion of thyroid hormones : Briefly describe how the secretion of Thyroid hormones is controlled by a negative feedback system.
What were the key findings of the research : You've learned about the importance of research and the steps of the sociological research process. For your first assignment, you will begin to work.
How can the route of exposure affect the toxicity : Choose one of these chemicals, and review the toxicology data for it. How can the route of exposure affect the toxicity of the chosen chemical/compound?
Implement and query a database from a supplied er diagram : ITECH 1006 - Database Management Systems - implement and query a database from a supplied ER Diagram and Schema. You will be required to write SQL statement
Negative feedback mechanism : What makes this mechanism important as the body tries to maintain homeostasis?
Blocking the flow of urine out of the kidney : A kidney stone lodges in an ureter, blocking the flow of urine out of the kidney. What effect will this have on glomerular filtration rate? be as specific as po
Know the main function of the kidneys : Know the main function of the kidneys Know the organs of the urinary system and the pathway of urine What is the nephron? Know the different components and each
Know the organs of the respiratory system : Know the organs of the respiratory system What organs include the upper and lower respiratory tracts?

Reviews

len1836950

1/29/2018 6:09:00 AM

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 10 5. SQL statements Total 65 Marks Q a • Correct syntax • Correct table used • Correct use of sorting statement 4

len1836950

1/29/2018 6:08:49 AM

2 Revised Schema • Any assumptions explained • All tables included • Data types correct • Primary and foreign keys indicated and referenced correctly 10 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 10

len1836950

1/29/2018 6:08:43 AM

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. Marking Criteria/Rubric Assessment Criteria and Marking Overview Tasks Marks 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. 5

len1836950

1/29/2018 6:08:07 AM

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. If you submit a compressed archive, please use zip only. 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!

len1836950

1/29/2018 6:07:35 AM

Timelines and Expectations Percentage Value of Task: 20% Due: Friday inWeek 11 (11:55 pm) Minimum time expectation: 20 hours Books For Everyone (BFE) is a company that sells books and e-books. The company 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.

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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