Find out how many times a customer generated an invoice

Assignment Help Database Management System
Reference no: EM132128468

Assignment Question -

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

Reference no: EM132128468

Questions Cloud

Difference in terms of the information : Is there any difference in terms of the information that could be provided to the decision maker by an IS that was created using HSM
Read a double number as 2 digits after the decimal point : Read a double number as 2 digits after the decimal point. The number should have at least 6 digits BEFORE the decimal point.
Rational investor to hold fully diversified portfolio : Explain in detail why is it important for a normal, rational investor to hold a fully diversified portfolio.
What is the mean wage in female and male-dominated jobs : What is the mean wage in female-dominated and male-dominated jobs? Does the differential necessarily indicate discrimination?
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"
Definitely could have engaged in strategic planning : Describe a period where the organization definitely could have engaged in strategic planning
Parent company consisting of multiple chains : Most of the entities below are classified by STR as “Chains”. Which one is a “Parent Company” consisting of multiple chains?
How you would test for a causal effect : Explain why the following claims might not imply causal relationships and outline how you would test for a causal effect using an experimental methodology.
Write codes to implement the given expression : COA Assignment Task - Write codes to implement the expression: A= (B + C * D - E) on 3-, 2-, 1- and 0-address machines

Reviews

Write a Review

Database Management System Questions & Answers

  Implementation of multidimensional data model

ISIT312/ISIT912 Big Data Management Assignment. Implementation of multidimensional data model, implementation of query processing

  Write program to ask user to enter last name of customer

Write a program that will ask the user to enter the last names of our candidates in a class officer's president election and the number of votes received each candidate.

  What are steps to create a rea business process level model

What are the steps to create a REA Business Process Level Model? Create ER Diagram for these two events? Write ER grammar for the above economic exchange event?

  Identify a topic of interest that pertains to a significant

identify a topic of interest that pertains to a significant clinical nursing issue. provide a brief description of the

  Question 1research the definition of a minimal cover

question 1research the definition of a minimal cover. explain it in your own words and give an example. question

  Create spreadsheet that contains three separate data sets

Identify your dream vehicle (plane, automobile, boat, etc.) and estimate its cost and the interest rate if you financed its purchase. Enter data (loan amount, interest rate, term, etc.) onto spreadsheet and use the PMT function and cell references..

  Create a client/property database using microsoft access.

The file New Database window opens, then type the word Client as the name for this file where the cursor is blinking, then click the create bottom.

  Create and populate a relational database with three tables

Create and populate a relational database with three tables - Write queries with relational algebra such as union, intersect, and difference

  Create a data flow diagram relating table of database schema

Create a Data Flow Diagram (DFD) relating the table of your database schema through the use of graphical tools in Microsoft Visio or an open source alternative.

  Explain how to develop a project charter

Using the above scenario, develop a project charter. Include the problem statement, justification for the project, and how the project will be measured for success.

  Design a query that will allow the finance department

Design a query that will allow the finance department to determine the commissions paid to specific employees of the sales department.

  Create a data warehouse for a hotel resort

The basis of this project is to create a data warehouse for a hotel resort. Create a visualization for your second management question

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