ITC556 Database Systems Assignment problem

Assignment Help Database Management System
Reference no: EM132377313

ITC556 Database Systems - Charles Sturt University

Query databases using SQL

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.

Rationale

This assessment task will assess the following learning outcome/s:

• be able to use complex SQL commands to query a database.

Presentation

The document must be prepared in a professional manner with clarity and sound organization.

Requirements

Either submit your assignment as a PDF or a Word document.

Attachment:- Query databases using SQL.rar

Reference no: EM132377313

Questions Cloud

Characteristics that will be needed in office management : Explain professional characteristics that will be needed in Office Management.
Analyze structural-practical aspects of american politics : ?This critical thinking exercise will look to encourage you to analyze the structural and practical aspects of American politics.
Explain the variables of interest and what they measure : In one to two sentences each, explain the variables of interest, what they measure, and how. Draw conclusions about RQI based on the analysis
Constitutional rights in administrative encounters : Please finish a Chapter summary, Before the title "Individuals' Constitutional Rights in Administrative Encounters".
ITC556 Database Systems Assignment problem : ITC556 - Database Systems Assignment help and solution, Charles Sturt University, Assessment help - Query databases using SQL - Show the details of the invoice
Describing how graph theory is used : Research an application of Graph Theory in the real world. Find an article that describes how Graph theory is used, and what parts of Graph Theory are used.
Who are the stakeholders you will seek to act as sponsors : Summarize stakeholder attitudes about the identified problem and support your summary with specific data from your collection tool.
SOCW 6200 Human Behavior and the Social Environment Question : SOCW 6200 Human Behavior and the Social Environment assignment help and solutions, Walden university - Cultures idealizing thinness, pressure from peers to fit.
Determine the success or failure of a change management : Paramount to the success of any organizational change is a leader's ability to "know where the organization needs to go.

Reviews

len2377313

9/27/2019 12:10:55 AM

Criteria HD DI be able to use complex SQL commands to query a database. SQL syntax returns all attributes that meet the business requirement from the tables that hold the data and applies the correct restrictions to retrieve the required information. SQL syntax returns all attribut that meet the business requirement from the tables t hold the data with minor omissions and applies appropriate restrictions to retrieve the required informati

len2377313

9/27/2019 12:10:45 AM

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

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