Query databases using sql assignment

Assignment Help Database Management System
Reference no: EM132379055

Assessment - Query databases using SQL

Task

Task: Complex SQL Queries

Instructions

From Resources under Main Menu in Interact 2 go to Assignment 4 Folder

Copy sqlite3.exe file from the Assignment 4 Folder into a folder in your machine

Copy a4.txt from the Assignment 4 Folder into the folder in your machine where your SQLite file is located

From the SQLite Command Prompt execute the a4.txt script. To do this, at the SQLite Command Line type .read a4.txt [to 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

Write and run SQL statements to complete the following tasks (Each Query : 1.5 (0.75 query+ 0.75 for screenshot) Marks)

1. Show sums of line units for each invoice.

2. Show the details of the products that do not have a value for the attribute v_code.

3. Show the details of the invoices whose subtotal is greater than 24 but less than 76.

4. Show the details of the invoice who has the minimum subtotal.

5. Show the codes and names of the vendors who supplied products.

6. Using EXCEPT show the codes of the vendors who did not supply any products.

7. Using ‘NOT IN' show the codes and names of the vendors who did not supply any products.

8. List the names and codes of vendors and the number of products each vendor has supplied, i.e. vendor XXX has supplied xxx products, and vendor YYY has supplied yyy products etc.

9. Show the details of the employees who are located in area code 615.

10. Using inner join, list the details of the products whose line price is greater than 99.

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. If you type .echo on at the SQLite3 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 after you execute the SQL query. If you used an output file please submit only the output file.

Attachment:- Database Systems.rar

Reference no: EM132379055

Questions Cloud

Different organisms effect the eyes function : Why aren't all eyes the same? How does the variation in the structure of eyes different organisms effect the eyes' function?
Made up of organic and inorganic material : Consider that bone is made up of organic and inorganic material. What is the difference between organic and inorganic material as far as carbon atoms?
Illustration of the dry bones relate to spirituality : After reading Ezekiel 37:1-37, how does the illustration of the dry bones relate to spirituality?
Determining the credibility of a source is important : When it comes to scholarly work, determining the credibility of a source is important
Query databases using sql assignment : Query databases using SQL Assignment help and solution, Charles Sturt University - Show the details of the products that do not have a value for the attribute
Which are steriod hormones : Which are steriod hormones, and which are water soluble hormones.
Discuss the pathophysiology of how atherosclerosis progress : 1. Discuss the pathophysiology of how atherosclerosis progresses. 2. Discuss how physicians diagnose a thrombotic myocardial infarction.
What is the rule of nines : In regards to skin burns, what is the "rule of nines"? What are some risk factors and complications that could develop if a patient burns 50% of their skin?
ISY2004 Information Systems Project Management Assignment : ISY2004 Information Systems Project Management Assignment - Project Plan, Assessment Help, Australian Institute of Higher Education, Australia

Reviews

len2379055

9/30/2019 3:40:21 AM

Criteria HD DI CR PS be able to use SQL syntax SQL syntax SQL syntax SQL syntax complex SQL returns all returns all returns key returns key commands to attributes that attributes that attributes that attributes that query a meet the meet the meet the meet the database. business requirement business requirement from business requirement from business requirement from the tables the tables that the tables that from the tables that hold the hold the data hold the data and that hold the data and with minor applies relevant data but the applies the omissions and restrictions to restrictions correct applies retrieve the applied to restrictions to appropriate required retrieve the retrieve the required restrictions to retrieve the information. required information information. required information. contain minor errors.

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