Create a query based on invoice table

Assignment Help Database Management System
Reference no: EM131499191

Create and Query Databases using SQL

Task - Write SQL statements to answer the following questions from the 'assignment5'

Database: Answer all questions

1. List all the record/s in the vendor table that do not have a value for the attribute V_STATE.

2. Find the customers whose balance is greater than 250 but less than 400.

3. Create a query based on invoice table to show a 15% increase on tax in a new column.

4. Show the first and last names of the customers for whom we have issued invoices.

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

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

7. Find out how many times a customer generated an invoice - make sure the counted column heading reads "Invoices_generated" .

8. List the names of the customers and how many times a customer generated an invoice - make sure the counted column heading reads "N_Of_Invoices".

9. Find the customers whose last name is either Dunne, Orlando or Brown and live in area 615, sort in alphabetical order by the CUS_LNAME.

10. Add a new attribute called 'email_address' to 'emp' table and use data type and length 'VARCHAR-20'.

11. Add a new row/record to the 'customer' table to include your actual student ID in the CUS_CODE, your lastname as the CUS_LNAME' and your firstname as CUS_FNAME. Add any other details in the other fields.

12. Delete all the vendors in the FL state.

Rationale

This assignment will assess your knowledge and ability to use SQL to create database tables. It will also test your ability to write both simple and complex queries given a set of results that are required and to the run those queries to return the requested data.

Attachment:- Assignment Files.rar

Reference no: EM131499191

Questions Cloud

Explain difference between cash and accrual accounting : In what way can a business manager use accounting information?
Develop a process to resolve the conflict : Develop a process to resolve the conflict. Describe how you would handle the workplace investigation for the chosen scenario.
Why a ledger account has only a debit and credit column : Explain if it is possible for a transaction to affect an asset account without also affecting some other asset or a liability or owners' equity account.
What is the residual sum of squares : a. What is the residual (or unexplained) sum of squares (RSS)?
Create a query based on invoice table : Task - Write SQL statements to answer the following questions from the 'assignment5' Create a query based on invoice table to show a 15% increase on tax
Resource curse and failed development : Explain why oil wealth in Nigeria is seen as an example of a "resource curse" and "failed development".
Describe the double declining balance : A hotel shows office supplies such as stationery on its balance sheet as a $500 asset, even though to any other hotel these supplies might have a value only.
How can information systems benefit businesses : How can Information Systems benefit businesses in a competitive market and what is Data Privacy/Data Protection and why is it important
Major producer of natural gas and oil : Does this industry need an export subsidy protection of any kind, why or why not?

Reviews

len1499191

5/17/2017 6:44:06 AM

Australian student, need it as per the guidelines. Accurate and elegant SQL that answers all parts of the question. SQL code copied from MySQL as well as a screen shot of code and results into the submission file. This assessment item is required to be submitted in Word format (.doc, or .docx). All SQL statements should be copied from MySQL into the word document. All screenshots that are required should be captured and inserted into the document in the appropriate position to show that you have completed the requirement. Screenshots that are submitted in addition to the assignment document will not be marked.

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