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

  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