Analyse and modify an existing database design

Assignment Help Database Management System
Reference no: EM131660111

Query and update databases using SQL

Task - Instructions

From Resources under Main Menu in Interact 2 go to Assignment 5 Folder

The 'assignment5' database file will be made available on Interact2 Resources under Assessments folder.

Use MySQL software to complete this assignment.

Follow the instructions on 'how to import a database into MySQL': your teacher will also demonstrate this during class.

Use this (imported) database 'assignment5' to complete your assignment using MySQL.

A choice of another software may be possible after consultation with your teacher.

Write SQL statements to answer the following questions from the 'assignment5' database file.

Show sums of line totals for each invoice.

Locate the record in the vendor table that does not have a value for the attribute V_STATE

Find the customers whose balance is greater than 200 but less than 300.

Using natural join and having, list the customers whose invoice total is greater than 200

Show the names of the customers for whom we have invoices.

Using natural join and having, list the customers whose invoice total is greater than the average

Show the names of the customers for whom we DO NOT have invoices.

Using natural join and having, list the customers whose invoice total is the maximum.

List the first name and last name of the customers and how many times a customer has generated an invoice.

List all purchases by customer 10018.

List the names of the vendors who provided products.

Using inner join, list the details of the products which sold more than 10 units.

You are required to submit:

The SQL statements for each query, which should be copied from your MySQL Workbench and pasted into your submission file. The screenshots of the results of the SQL statements which are to be copied from your MySQL Workbench and pasted into your submission file immediately after you execute the SQL query.

The screenshots of the results of the SQL statements which are to be copied from your SQLite3 Command Line and pasted into your submission file immediately after you execute the SQL query. If you used an output file please submit only the output file.

Rationale
This assessment aligns with the following subject outcomes:

be able to critically analyse and modify an existing database design to meet new business requirements;

The marking criteria for this assignment is:
Criteria
HD
DI
CR
PS
be able to critically analyse and modify an existing database design to meet new business requirements;

SQL syntax returns all attributes that meet the business requirement from the tables that hold the data and applies the correct restrictions to retrieve the required information.

SQL syntax returns all attributes that meet the business requirement from the tables that hold the data with minor omissions and applies appropriate restrictions to retrieve the required information.

SQL syntax returns key attributes that meet the business requirement from the tables that hold the data and applies relevant restrictions to retrieve the required information.

SQL syntax returns key attributes that meet the business requirement from the tables that hold the data but the restrictions applied to retrieve the required information contain minor errors.

Requirements
Either submit your assignment as a PDF or a Word document.

Reference no: EM131660111

Questions Cloud

Define the commission on collegiate nursing education : the requirements for clinical competencies as defined by the Commission on Collegiate Nursing Education
How to use stop-payment orders : Monetary Costs and Risks One reason is monetary: banks usually charge between $15 and $25 for a stop-payment order, so stopping payment is not cost-effective.
Task of monitoring plausible calamities : Imagine that your company succeeds in building enthusiastic employee participation in the task of monitoring plausible calamities.
On what types of checks does a bank serve : On what types of checks does a bank serve as both the drawer and the drawee? What type of check does a bank agree in advance to accept when the check.
Analyse and modify an existing database design : Find the customers whose balance is greater than 200 but less than 300 - how many times a customer has generated an invoice
Examine how the theory would guide nursing actions : Explain whether the theory uses deductive, inductive or retroductive reasoning
Explore how a theorist of your choice created his theory : Explore how a theorist of your choice created his or her theory. Did it develop as an acorn becoming a mighty oak over the decades?
Test code with different test values : These activities may test code with different test values. This activity will perform three tests: The first with user input of 32, second with user input of 0
Describes a company that used careless language : Find a news article online that describes a company that used careless language in its communication with its customers, stockholders, or employees.

Reviews

Write a Review

Database Management System Questions & Answers

  Eamples of open-source and proprietary databases

Write a 4-5 page paper in which you distinguish between open-source and proprietary databases. Address the following in your paper: Examples of open-source and proprietary databases

  Design an entity relationship diagram

Design an Entity-Relationship diagram for the movie order database and enter the design using a data-modeling tool such as ERWin.

  The database dish.xlsx contains a transaction history

The database Dish.xlsx contains a transaction history describing more than 4,000 purchases of detergent

  Sketch an e-r diagram for the enterprise

A library maintains a database about its books. Information kept on each author includes the author's name and country of origin.

  Objectivesto analyse and comprehend a provided er diagram

objectivesto analyse and comprehend a provided er diagram and database schemato implement a database based on the

  Implement a good information systems plan

Implementation of business analytics, an organization will also need to implement a good information systems plan in order to collect, manage, and organize all of the data.

  Write pseudocode to represent the logic of a program

Write pseudocode to represent the logic of a program that allows the user to enter values for the width and length of a room's floor in feet. The program outputs the area of the floor in square feet.

  Prepare the first-stage allocation of overhead costs

Prepare the first-stage allocation of overhead costs to the activity cost pools and prepare an action analysis report in good form

  Create a list of animals that are brown in colour

Create a list of animals that are "Brown" in colour and less than 2 years old. Show the animal name and species name. Create a view that lists all the animals that eat "straw". Show the animal no, animal name and scientific name.

  Draw context diagram data flow diagram for system described

Draw a context diagram data flow diagram for the system described above. The format should be similar to the context diagram in figure 5-13 of your textbook.

  Show attributes and include relationship and connectivity

Show all attributes and include relationship and connectivity. Convert all M:N relationships into entities. You are to use Crow's Foot notation showing all attributes for each entity and naming each relationship. Do not show M:N relationship, convert..

  How are qbe tools and sql similar

How are QBE tools and SQL similar?- How are they different?- What is a data warehouse? - How does it differ from a database?

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