Find out how many times a customer generated an invoice

Assignment Help Database Management System
Reference no: EM131506617

Question: CREATE AND QUERY DATABASES USING SQL

Task: Write SQL statements to answer the following questions from the ‘assignment'

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.

Reference no: EM131506617

Questions Cloud

Discuss the concept of relevance : Case International versus U.S. Standard- Discuss the concept of relevance. Discuss the qualitative concept of comparability. Discuss the concept of reliability.
Identify and briefly discuss three trm loss exposures : Identify and briefly discuss three TRM loss exposures illustrated in this article.
What avon needs to know about the exchange rate : What key advantages will Avon by entering a new global market - explain what Avon needs to know about the exchange rate.
The politics of medicare and medicaid : One of the significant challenges for Medicare and Medicaid is not necessarily the implementation of the program but the influence of the political climate.
Find out how many times a customer generated an invoice : List all the record/s in the vendor table that do not have a value for the attribute V_STATE.
What are the risks and liability factors in an audit : What are the risks and liability factors in an audit? What are the implications to the auditors What are the implications to the organizations?
Retain a more diverse workforce : What are the main things you would do to recruit and retain a more diverse workforce?
Operational budget for krona community : As a member of the finance team, you have been asked to forecast the upcoming year's operational budget for Krona Community Hospital.
Your own professional code of communication : Prepare a presentation that serves as your own professional code of communication.Analyze communication techniques & reflect upon your own communication skills.

Reviews

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