Skip to main content

MySQL software

Query and update databases using SQL
Value: 15%
Submission method options
Alternative submission method
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;
Marking criteria
Each task is worth 1.25 marks. 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.
Don't use any other file formats.
Please include your student ID, name and subject code in your submission.
Submission Method: Turnitin. Details will be provided by the lecturer during the session.

Comments

Popular posts from this blog

Should pit bull terriers be banned in my community

 Discussion Forum: Counterarguments (Should pit bull terriers be banned in my community) You created a question about the topic for your W6 Rough Draft. For this discussion, you will give an answer to that question in the form of a thesis statement. "Dieting Makes People Fat" Main Post: Share your thesis statement with your classmates. Please note: As with last week’s discussion, nothing here is set in stone. Be open to changing everything about your topic, including your position and audience, as you research it and get feedback from your classmates. Topic + Position/Purpose + Supporting Points =Thesis Statement Example: Suppose the question you posed in the Week 5 discussion was something like, “Should pit bull terriers be banned in my community?” After doing some preliminary research, you have concluded that pit bulls, if raised properly, are no more dangerous than other breeds of dogs. Your thesis statement can be something like, “Pitbulls should not be banned

CYBER SECURITY and how it can impact today's healthcare system and the future

 Start by reading and following these instructions: Create your Assignment submission and be sure to cite your sources, use APA style as required, and check your spelling. Assignment: Recommendations Document Due Week 6 (100 pts) Main Assignment Recommendations Document The 1250 to 1500-word deliverable for this week is an initial draft of your recommendations. Note that this is a working document and may be modified based on insights gained in module eight and your professor's feedback. This document should contain the following elements: Summary of your problem or opportunity definition A list of possible recommendation alternatives. In this section, you are not yet at the point of suggesting the best set of recommendations but you are trying to be creative and explore all the different ways that the problem or opportunity might best be addressed. The end result here will be a list of alternatives among which you will choose your final recom

Do violent video games encourage players to become violent in real life?

 Write an outline for Speech 3, the persuasive belief speech, following the outline guidelines and formatting requirements (Do violent video games encourage players to become violent in real life?).  1000-1200 WORDS https://virtualspeech.com/blog/persuasive-speech-outline-structure-delivery Topics: https://blog.prepscholar.com/good-persuasive-speech-topics Do violent video games encourage players to become violent in real life? https://www.youtube.com/watch?v=YKKWOx43pIY WE HAVE DONE THIS ASSIGNMENT BEFORE, WE CAN ALSO DO IT FOR YOU GET SOLUTION FOR THIS ASSIGNMENT,  Get Impressive Scores in Your Class CLICK HERE TO MAKE YOUR ORDER   on Do violent video games encourage players to become violent in real life? Are You looking for Assignment and Homework Writing help?  We Provide High-Quality Academic Papers at Affordable Rates. No Plagiarism. TO BE RE-WRITTEN FROM THE SCRATCH