Find out how many times a customer generated an invoice

Assignment Help Database Management System
Reference no: EM13937761

Task

NOTES
• This assignment encourages you to use SQLite to complete the tasks listed below.
• The instructions listed below relate to SQLite.
• For guidance on how to install SQLite, watch this short YouTube video: https://www.youtube.com/watch?v=YZQuQ6jael8
• For guidance on how to create tables using SQLite, watch this short YouTube video: https://www.youtube.com/watch?v=Ev2JnjavvmE
• You are welcome to use MySQL. The instructions for using MySQL will be placed in the Students Resources Folder.
• To use other packages, please seek the approval of your subject coordinator.
• Typing the SQL statements or the results is NOT acceptable.

Instructions

From Resources under Main Menu in Interact 2 go to Students Resources Folder

Copy sqlite3.exe and cmd.exe files from the Students Resources Folder into a folder in your machine

Copy a5.txt from the Students Resources Folder into the folder in your machine where your SQLite file is located

Open a5.txt in Notepad

Replace yourstudentid in line .output yourstudentid.txt in a5.txt with your actual studentid i.e. for example 45446667.txt

From the Command Prompt type sqlite3.exe yourstudentid.db

Note: From the Command Prompt call the folder in your machine where your SQLite file is located before you type sqlite3.exe yourstudentid.db

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

Using WordPad open yourstudentid.txt [to check the tables you created exist]

From the Command Prompt type sqlite3

At the SQLite Command Line type .open yourstudentid.db

At the SQLite Command Line type .headers on

At the SQLite Command Line type .mode column

Write and run SQL statements to complete the following tasks

1. Show all the details of the products by v_code 21344

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

3. Find the customers whose balance is greater than 200 but less than 300.

4. What is the max balance?

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

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

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

8. Find out how many times a customer generated an invoice.

9. List the names of the customers and how many times a customer generated an invoice.

10. Add a new attribute (field) credithistory varchar(6) to the customer table.

11. Update credithistory for customer '10011' to 'Bad'.

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

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

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

Reference no: EM13937761

Questions Cloud

Common building object made from a type of polymer : Choose a common building object made from a type of polymer; explain what type of polymer is used and why it is the most suitable. What are the mechanical and chemical requirements of the polymer for the particular building object?
Find the amount resin quantity required : Hardness is 160 ppm and flow rate is 40 m3/hr ,I want to know the amount resin quantity required. Please give me a solution with details.
What does the gross profit percentage measure : What does the gross profit percentage measure? How is it calculated? What does the inventory turnover ratio measure? What does average-days-in­ inventory mean?
Should per unit tax be imposed on item that price elasticity : Governments impose taxes for several reasons. The most obvious reason is to raise revenues for the government. If the goal of a government is to raise the maximum revenues, should a per unit tax be imposed on an item that has a price elasticity of..
Find out how many times a customer generated an invoice : Find out how many times a customer generated an invoice and What is the max balance - Show the names of the customers for whom we have invoices.
Describing the main project theme : Ideally this is a brief title describing the main project theme. e.g. Design of a Domestic Security System.   Name and Programme of Study  Clearly identify your name, the programme of study.  Aims of the Project   Between 3 and 6 aims (more does n..
Search the web using the term variable costing : Search the Web using the term variable costing.
Calculate total cost, fixed cost, variable cost : Using the information in data set one, which I have included in the table below, recalculate total cost, fixed cost, variable cost, marginal cost, average total cost, average variable cost and average fixed costs if the price of the fixed input (t..
Compare this amount to the difference in the net incomes : How much fixed manufacturing overhead is in ending inventory under full costing? Compare this amount to the difference in the net incomes calculated in Exercises 8 and 9.

Reviews

Write a Review

Database Management System Questions & Answers

  What do you understand by data analytics

Watch the 36-minute video on ‘Data Analytics at Facebook' at www.youtube.com/watch?v=D19.JiG-Ow9g or http://bit.ly/1Vk0r3K or tinyurl.com/facebook-data-analytics, What do you understand by data analytics

  The basic mechanisms for accessing relational database

Describe the basic mechanisms for accessing relational databases from various types of application development environments.

  Create a student database in ruby

To create a student database in Ruby that allows for, updating a record within the database

  Explain and design an mssql solution for high availability

Explain and design an MSSQL solution for high availability

  Characteristics of database

Describe the database and describe the four characteristics of the database? Explain the Relational Database and generate a relational database for five employees.

  Difference between e-r diagram and the data dictionary

E-R diagram specializes a logical graphic model and it doesn't contain any data type or data information in a database.

  Analyze the sales data to determine the true track record

You are going to determine the percent of asking price for each home sold and analyze the sales data to determine the true track record of the company in selling homes for the asking price

  Define basic entity relationship diagram colleges

E-R diagram - Basic Entity Relationship Diagram Colleges and universities must draw a clear connection between the requirements of the field for which the student is being prepared and the things required of the student as part of that preparation pr..

  Identify entity types and their attributes

Identify entity types and their attributes, including the primary keys. Make sure that all your entities and your designed database is in third normal form.

  Create a list of managers and supervisors

Your company wants to encourage carpooling. Create an answer table listing employee name, city and street address (in that order) for employees who live in Crestline.

  Create a vlookup criteria table

Create and use named ranges for range references (I ended up with about 30 named ranges).

  Knowledge and data warehousing

Knowledge and Data Warehousing

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