Show the names of the customers for whom we have invoices

Assignment Help Database Management System
Reference no: EM13944733

• 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: EM13944733

Questions Cloud

How would you have suggested he respond to the seating : If you were Gov. Blagojevich's public relations adviser, how would you have suggested he respond to the seating of Roland Burris as senator?
How clear is kurzweil''s discussions of your item : What are the crucial passages in the text where Kurzweil discusses your item with the most clarity or depth? Please quote short passages and crucial parts of longer passages.
Prepare a classified balance sheet : The adjusted trial balance for Rego Bowling Alley at December 31, 2014, contains the following accounts. Prepare a classified balance sheet; assume that $15,000 of the note payable will be paid in 2015
Calculate the exam grades for a class : You will write a program to calculate the exam grades for a class of a few hundred students.
Show the names of the customers for whom we have invoices : Show the names of the customers for whom we have invoices.  Show the CUS_CODE of the customers for whom we DO NOT have invoices. Show the names of the customers for whom we DO NOT have invoices.
Statistical distribution of the test statistic : If the null hypothesis is true, state the statistical distribution of the test statistic. Use α=0.05 and perform all 5 steps of hypotheses testing for complete credit.
How might prototyping be used as part of the system : How might prototyping be used as part of the System Development life cycle (SDLC)? Use your own words. A 100 MIN no less.
Regression model to test the null hypothesis : Use a simple regression model to test the null hypothesis against the alternative
How are organizational information systems : How are organizational information systems related to company strategy? How does strategy affect the information systems a company develops and uses?

Reviews

Write a Review

Database Management System Questions & Answers

  How will your team c

What steps will your team take if you need to seize any digital evidence and What documentation processes will you follow to help support any potential legal proceedings?

  Assignment 62suppose your database system has failed

assignment 6.2suppose your database system has failed. describe the database recovery process and the use of

  Design a clean and normalized database

Design a clean and normalized database that handles books for a library application. You need to consider the following rules before you design the database: Analyze and identify some of the logical problems that might exist in the library system

  Normalize the table by listing the 2nf tables

Answer Yes or No to the following Functional Dependency questions. Base your answers on the data shown in Table X below. There are no further rows in this table.  Provide reasoning VERY briefly. Normalize the table by listing the 2NF tables

  Write-up thoughts on the tutorial

Write-up thoughts on the tutorial on given tutorials: 2005 Tutorials

  Database concurrency control and data security

Database concurrency control and data security and describe how the data is displayed and extracted.

  Define the database environment chosen

The following assignment is based on the database environment chosen and discussed in the Week Two Individual Assignment. Use a Microsoft Visio diagram to create a detailed ERD using the data specificationsnoted in the Week Two Individual Assignmen..

  List the details of parts supplied by quality

Attribute dob is the customer's date of birth, stops is the number of stops (0-??) a flight requires, and onTime is a percentage (0-100) indicating how often a flight is on time. Keys are underlined.

  Implementation of virtual private databases

SQL implements VPD using the VIEW object while Oracle10g provides specific functions for row-level security and fine-grained access.

  Compute the customer margin for the whiddon family

Compute the customer margin for the Whiddon family. Round off all calculations to the nearest whole cent.

  Produce an entity-relationship model for the scenario

Produce an Entity-Relationship Model for the scenario, Query your database, Optimize your Database,Secure your Database, and built Building a Web Interface

  How is google bigtable different than a traditional database

Class, how is Google BigTable different than a traditional database

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