Find out how many times a customer generated an invoice

Assignment Help Database Management System
Reference no: EM131835748

Assignment Tasks: Write and run SQL statements to complete the following tasks

Part A - DML

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

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

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

4. What is the max balance?

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

Part B - DDL

1. Add a new row/record to the 'customer' table to include your actual student_ID in the CUS_CODE, your last_name as the CUS_LNAME' and your firstname as CUS_FNAME. Add any other details of your choice in all the other fields.

2. Add a new attribute (field) credit_history VARCHAR(6) to the customer table.

3. Update credit_history for customer '10011' to 'Bad'.

4. Delete the employee Leighla Genkazi from the EMP table.

5. Add a new attribute called 'email_address' to 'emp' table with data type and length 'VARCHAR(20).

You are required to submit:

1. The SQL statements for each query, which should be copied from your SQLite3 Command Line and pasted into your submission file.Ifyoutype .echoon at the SQLite3 Command Line, SQLite will output your SQL statement with the results of the query making it easy to copy and paste both.

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

Attachment:- Assignment Files.rar

Reference no: EM131835748

Questions Cloud

Discuss the most appropriate form of ownership for business : Determine if it would make more sense to open the new business you describe or to purchase the existing business you selected. Explain your reasoning.
Evaluate financial reporting of state and local governments : Evaluate the financial reporting of state and local governments and assess the reporting requirements in accordance with governmental accounting standards board
What is the present value of the annuity : If the interest rate is 9 percent compounded monthly for the first four years, and 7 percent compounded monthly thereafter
What is the current value of the annuity : What is the value three years from now? What is the current value of the annuity?
Find out how many times a customer generated an invoice : Find out how many times a customer generated an invoice - make sure the counted column heading reads "Invoices_generated"
Payments are an ordinary annuity : What is the present value of the payments if they are in the form of an ordinary annuity? What is the present value if the payments are an annuity due?
Discuss Martinetti approach to market the acquisition : As a member of the Martinetti management team, you have been selected to meet with the Sand Coast Resort leadership team to discuss Martinetti's approach.
How much can you withdraw each year : Additionally, when you retire you will transfer your money to an account that earns 6.25 percent. How much can you withdraw each year?
What kind of deal did the defensive tackle sack : If the appropriate interest rate is 11 percent, what kind of deal did the defensive tackle sack? Assume all payments other than the first

Reviews

len1835748

1/29/2018 12:40:56 AM

Formatting & Referencing: APA. Copy a5.txt from the Assignment 5 Folder into the folder in your machine where your SQLite file is located. From the SQLite Command Prompt execute the a5.txt script. To do this, at the SQLite Command Line type .read a5.txt [to create the tables you will use to answer this assignment’s questions] At the SQLite Command Line type .headers on. At the SQLite Command Line type .mode column.

len1835748

1/29/2018 12:40:44 AM

You are required to submit: The SQL statements for each query, which should be copied from your SQLite3 Command Line and pasted into your submission file.Ifyoutype .echoon at the SQLite3 Command Line, SQLite will output yourSQL statement with the results of the query making it easy to copy and paste both. 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.

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