Implement and query a database from a supplied er diagram

Assignment Help Database Management System
Reference no: EM131832126

Database Management Systems 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 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 wholesalers, sorted by suburb in ascending order.

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

c. List all the authors who are based in USA and who have a biography on file. Print their name as ONE column with a suitable heading, and show 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 book title, 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 authors and 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 author is 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.

Attachment:- Assignment File.rar

Reference no: EM131832126

Questions Cloud

Calculate the initial velocity of the shell : 1. The cannon on a battleship can fire a shell a maximum distance of 42.0 km.
Create a questionnaire and present to current employees : Create a questionnaire and present to current employees. Create a model showing the current data flow of the mail-order catalog business.
Propose a sampling design that would be appropriate : List at least 10 variables that will be measured in your research. No more than two of these should be sociodemographic indicators like race or age.
Create one wide area and one local area connectivity map : For one of these external locations, create one wide area connectivity map and one or more local area connectivity maps.
Implement and query a database from a supplied er diagram : ITECH 1006 - Database Management Systems Assignment. For this assignment you will implement and query a database from a supplied ER Diagram and Schema
Describe the strategies used by the organization : Choose an organization to use for this assessment. It can be where you are currently employed or a company with which you are familiar.
Highest point on its trajectory : How far above the release point does the ball hit the wall? What are the (b) horizontal and (c) vertical components of its velocity as it hits the wall?
What are the various benchmark tests that are available : What are the various benchmark tests that are available for testing a computer system or computer network?
What is the velocity of the cart : Its initial velocity has components v0x = 8.0 m/s and v0y = 12 m/s.In unit-vector notation, what is the velocity of the cart when it reaches its greatest

Reviews

len1832126

1/25/2018 3:39:08 AM

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. You should submit the following: 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. The nnnn_create.txt file (where nnnn is your student number). The nnnn_insert.txt file (where nnnn is your student number). The nnnn_query.txt file (where nnnn is your student number).

len1832126

1/25/2018 3:39:00 AM

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

Write a Review

Database Management System Questions & Answers

  Identify the stakeholders for your selected scenario

Identify the stakeholders for your selected scenario. Create a plan for an hour-long interview with representatives of these stakeholders. Then meet with the instructor to discuss possible answers to the questions.

  Discuss process went through to select appropriate data type

Discuss the process you went through to select the appropriate data types, primary and foreign keys, and other constraints that are necessary to maintain the integrity of the database.

  Security associated with new project

Your company has put in the request for a new database system and you have been tasked with architecting the security associated with this new project.

  Create the tables and relationships from the database design

Create the tables and relationships from the database design discussed in Lab 2. Add at least five records into each table (Note: You must determine the field values).

  Calculate the percentage of time

Let us have a 20MIPS processor, you have to calculate the percentage of time it spends in busy wait loop of a 75-character line printer, when it takes 2 msec to print a character and a total of 665 instructions require to be executed to print a 75..

  Identify each relationship type and write all of the busines

Identify each relationship type and write all of the business rules and create the bask Crow's Foot ERD for DealCo.

  Our boss approached you to identify a solution for a

our boss approached you to identify a solution for a performance issue and system outages that have been experienced on

  How many times the top module call each subordinate module

Select the best answer for each of the multiple choice questions below about the Structure Chart shown her

  Assume that you would like mary to be able to verify that

Assume that you would like Mary to be able to verify that all your email mes- ages are really sent from you. How can you authenticateyour messages without encrypting the actual text?

  Discuss about the data warehousing design

Create a database schema that supports the company's business and processes. Explain and support the database schema with relevant arguments that support the rationale for the structure. Note: The minimum requirement for the schema should entail t..

  Database planner should spend a considerable amount of time

Provide what reports may be produced as a result of your database design.Based on the information you have researched, create a 2-3 page design document that includes a description of the database you would like to create as well as sample tables ..

  Explain your experiences related to your setup of mysql

write a one to two 1-2 page paper in which youq1. describe your experiences related to your setup of mysql. include any

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