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

  How four principles of data collection support your ability

Explain how the "Four Principles of Data Collection" from Yin (2014) support your ability to address your DBA doctoral research question.

  Identify all the relationships

Identify all the entities and Identify all the relationships - Draw the ERD Diagram - Apportion cardinality ratios appropriately in the ERD Diagram

  Classify the given attributes by number of values

Classify the following attributes by number of values (binary, discrete or continuous) and applicable operations (nominal, ordinal, interval, ratio). Explain your choice.

  Explaining database security relate to data integrity

In talking about database security, some aspects to regard as are Data Integrity, Confidentiality, and Malicious Activity. Illustrate how does database security relate to data integrity?

  When you add a calculated field to a query it creates a new

When you add a calculated field to a query it creates a new

  Describe basic mechanisms for accessing relational databases

Determine the technical provisions that would be required to ensure data integrity. Evaluate whether the use of a distributed DBMS structure is appropriate.

  Describe various relational database management systems

Create an xml representation of data describing various relational database management systems (e.g. Microsoft SQL Server, MySQL, ...). The data for each database should include (but is not necessarily limited to) info like name, vendor, current v..

  Find average number of books borrowed per member

Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

  Redraw the erd using the crow foot model

Looking at the ERD, is Pet an optional or mandatory participant in the "Owns" relationship? Looking at the relationship cardinalities show in the ERD, what is the maximum number of pets that a customer can own

  Secure storage and retrieval process for healthcare data

Formulate a secure storage and retrieval process for healthcare data. Create a PowerPoint that highlights each of the topics below: Databases, Data dictionaries, data mining, and data warehouses and Characteristics of data quality

  Join tables, and calculate aggregate sales for each product

I need to find what 11 products are the best sellers (the width, height, depth, item name, product id, sales, gross margin), using the attached database. The query needs to be limited so only the top 11's information is shown

  Create database schema use insert update and delete commands

Creating the database schema, use Insert, Update, and Delete commands. After creating the database schema, use Insert, Update, and Delete commands to populate the tables with the following information.

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