Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91619217
  • Price:- $75

Priced at Now at $75, Verified Solution

Have any Question?


Related Questions in DBMS

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

You can work on this assignment individually or in a group

You can work on this assignment individually or in a group of 2. If you are working in a group please establish a group in Assignment 2 Group on Canvas In this assignment you are asked to explore the use of neural networ ...

Question create an erd for the following scenario once you

Question: Create an ERD for the following scenario. Once you submit you will get access to the correct way to create the ERD. Please watch the video and correct any errors in your submission and resubmit. A small company ...

Backgrounda new training organization called abc

Background A new training organization called ABC TechTraining is opening soon and they have approached you to help design their new database. They have just completed the refurbishment of the premises and are now lookin ...

Q1 given the following file for assignment workercom

Q1. Given the following file for assignment worker.com, identify data anomalies that must be removed before data can be loaded in data warehouse. Worker_assignment ← -----------------on course web site File is available ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

Database and information retrieval assignment - data

Database and Information Retrieval Assignment - Data Privacy Essay Task - Write an essay (aim for 750 words) that addresses issues associated with data proivacy. Use the Australian Privacy Principles - discussed in class ...

Question find at least two academic sources that describe

Question: Find at least two academic sources that describe the movement of Enterprise resource planning (ERP) activities to the cloud. Discuss the types of ERP activities that can be conducted in the cloud and the pros a ...

Question we can sort a given set of n numbers by first

Question : We can sort a given set of n numbers by first building a binary search tree containing these numbers (using TREE-INSERT repeatedly to insert the numbers one by one) and then printing the numbers by an inorder ...

Analytic reportpurpose the purpose of this task is to

Analytic Report: Purpose: The purpose of this task is to provide students with practical experience in working in teams to write a Data Analytical report to provide useful insights, pattern and trends in the chosen/given ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As