What is the max balance

Assignment Help Database Management System
Reference no: EM13948367

Task:

• 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]

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 'Bat

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: EM13948367

Questions Cloud

What should yahoo do about the situation in laffaire yahoo : In your opinion, what should Yahoo do about the situation in L'Affaire Yahoo? Should it make concessions to the French government
Calculate the margin and turnover ratios for last year : Seere Company provided the following income statement for last year. Compute average operating assets. Compute the margin and turnover ratios for last year. Compute ROI.
How world you compare with nike : What are the pros, cons and risks associated with Nike's core marketing strategy? If you were Adidas, how world you compare with Nike
Practical vs theoretical education in health professionals : Issue in health professions education, review the literature pertaining to the issue, analyze the issue, and discuss its effect on health professions education. In writing 8-10 Pages font size 12 double space, including refrances APA style.
What is the max balance : Find out how many times a customer generated an invoice - What is the max balance - List the names of the customers and how many times a customer generated an invoice.
The movie streaming business : What new opportunities do you see in the movie streaming business, or the entertainment industry as a whole?
Create a query that lists the following fields : Create a query that lists the following fields, in the order in which they appear below:
Compute the roi of the radio project alone : Compute the ROI of: the division if the radio project is not undertaken, the radio project alone and the division if the radio project is undertaken. Do you suppose that Cheryl will decide to invest in the new radio? Why or why not..
In the beginning railroads were highly regulated : In the beginning railroads were highly regulated and then in the 20th century they were deregulated.  Explain what caused the change in philosophy and do you agree or disagree and why?

Reviews

Write a Review

Database Management System Questions & Answers

  Types of keys used in relational database

Explain with examples different types of keys used in relational database, how they help relating different tables.

  Design a set of 3nf tables for database scenario

Draw an ER diagram for your database scenario. Design a set of 3NF tables for your database scenario.

  Create a database with at least one table with ms acces

Create a database with at least one table with MS Access. Add drop-down lists (combo boxes), validation rules, and input masks as required.

  Write sql queries to solve the given specifications

Write SQL queries to solve the following specifications. Include the query AND THE OUTPUT. A screen dump of the output is acceptable. Show as many rows as you can.

  Find the eids of employees who make the highest salary

Find the eids of employees who make the highest salary. Find the eids of employees who make the second highest salary.

  Write a paper on data gathering instruments

Write a paper on Data Gathering Instruments. Submit at least one of the data gathering instruments you have selected or at least one of the instruments you have constructed along with an explanation.

  Display the number of seats that were in the cinema

Display the number of seats that were in the cinema and the name of the movie. A list of all screenings of PG movies during the month of January, 2015.

  Find that the data structure holds redundant data

Imagine that you have been hired to fulfill their need of enhancing the data repository for their current reservation processing system. Upon reviewing the system, you find that the data structure holds redundant data and that this structure lacks..

  Write the functional dependencies in the table

Write the functional dependencies in the table which concerns invoicing (an application Premiere Products is considering adding to its database), subject to the specified conditions.

  Modify the no interest credit company application

Modify the No Interest Credit Company application so it executes continuously for any number of customers until a sentinel value is supplied for the account number.

  Dml triggers can be defined for a combination of dml

Normal 0 false false false EN-US X-NONE X-NONE DML triggers can be defined fo..

  Explain efficient algorithm for edge-labeled graph

Explain efficient algorithm that, provided edge-labeled graph G with distinguished vertex v0 and sequence s = σ1, σ2, ..., σk of characters from Σ, returns path in G which begins at v0.

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