Find the customers whose balance is zero

Assignment Help Database Management System
Reference no: EM132002438

NOTES
- This assignment requires you to use SQLite to complete the tasks listed below. Student can also use SQL Workbench or another software (if they are familiar) to complete the tasks.
- For guidance on how to install SQLite, watch short YouTube video
- For guidance on how to create tables using SQLite, watch short YouTube video
- Typing the SQL statements or the results is NOT acceptable.

Instructions for using SQLite:
- From Resources under Main Menu in Interact 2 go to Assignment 5 Folder
- Copy sqlite3.exe and cmd.exe files from the Assignment 5 Folder into a folder in your machine
- Copy a5.txt from the Assignment 5 Folder into the folder in your machine where your Salle 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 assignments questions]
- At the SQLite Command Line type .headers on -
- At the SQLite Command Line type .mode column

Assignment tasks:

Write and run SQL statements to complete the following tasks

Part A - DML
1. Show the details of the products where the product code starts with '22'.
2. Display the vendor details from areacode 615.
3. Find the balance for customer 'George Williams'.
4. Show the number of products from each vendor and display the vendor code if there are more than 2 products from the same vendor.
5. Display the vendor code. name. phone number and the number of products from each vendor.
6. Find the customers whose balance is zero.
7. List the name of the customers for whom we have invoices.
8. Show the name and cus_code of the customers for whom we DO NOT have invoices.
9. Find out how many times a customer generated an invoice.

Part B - DDL
1. Add a new attribute email address varchar(30) to the customer table.
2. Add email_address = [email protected]' for customer '10016'.
3. Delete the record for employee Edward Johnson from 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. It you type .echo on at the SOlite3 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 alter you execute the SQL query. If you used an output file please submit only the output file.

Verified Expert

The task of the assignment is to write SQL queries for the database stored in SQLite database. Before commencing to write the queries the database is setup using the queries given in a5.txt. Then the output and header option is turned on. Then the data are queried for to fetch data in different category based on the requirement. The query is executed to get the output and the results are documented with query and output for each requirement.

Reference no: EM132002438

Questions Cloud

Configuring the load balancer : Given this scenario, which of the following would be the BEST method of configuring the load balancer?
What is the stock expected return and standard deviation : What is the stock's expected return, variance and standard deviation.
Relating to programming functions : What procedures in your daily routine, say getting up and leaving for work, can you think of in terms of a function?
Create a feasibility study for harley-davidson : The analysis of current strategy and competitor analysis you conducted last module impressed the senior vice president.
Find the customers whose balance is zero : Show the number of products from each vendor and display the vendor code if there are more than 2 products from the same vendor
Classification system with definitions for private : A company has a data classification system with definitions for "Private" and "Public". The company's security policy outlines how data should be protected base
How well you analyse business-related information : Elements (Verbal) measures your analytical reasoning skills in relation to interpreting written information and reports. It comprises a computer-based test.
Define sole proprietorship and describe the liability : Define entrepreneurship and describe the types of businesses that an entrepreneur can use to operate a business.
What is favorite graphics or tables feature : After learning the more advanced features of Excel in Unit V, what is your favorite graphics or tables feature

Reviews

len2002438

5/31/2018 2:27:29 AM

roider into the folder in your machine where your SOLite file is located _ .. _••• •.•... ,-..,,,rylimurit a ,-- • From the SQLite Command Prompt execute the a5.bd script. To do this, at the SQLite Command Line type .read a5.txt Ito 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 Assignment 5 Rationale This assessment aligns with the following subject outcomes: • be able to critically analyse and modify an existing database design to meet new business requirements;

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