Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE SOLVE IN SQLITE BROWSER AND ATTACH SCREENSHOTS THANKYOU EXPLANANTION IS NO HELP In the SQLite Browser, you need to write, save, and run the

PLEASE SOLVE IN SQLITE BROWSER AND ATTACH SCREENSHOTS THANKYOU

EXPLANANTION IS NO HELP

In the SQLite Browser, you need to write, save, and run the following SQL queries:

2.1. Open the AppliedProject2.db database and save it as a project.

2.2. Create and run the queries to create primary and foreign keys. Save the queries in the project.

2.3. Insert a new customer. The record must contain your full name as a CustomerName, your state where you currently live (VIC, NSW), your APIC email address as a CustomerEmail.

2.4. Create a new sale fact related to the new customer. You can choose any existing product, warehouse, date and sales office. 2.5. Display all customer names, their addresses and states. 2.6. Display all customer names from NSW. 2.7. Display the total amount of sales for all companies in 2018. 2.8. Display total amount of sales for each customer separately. 2.9. Display total amount of sales for each product and state separately, i.e. the output should contain 3 columns: product, state and total amount for this product and state. 2.10. Display products sold from warehouses located in QLD. 2.11. For each sale, display a customer name and a purchase date. 2.12. Display a total number of sales (NOT AMOUNT!) for each customer. 2.13. For each sales office (branch), display: branchKey, branch state, a customer name (a customer purchased in this office), a product name purchased by this customer, and a month number of the purchase. 2.14. Calculate a number (not amount !) of sales in the first quarter of 2016. 2.15. Display the following sale information: Office branchAddress, customerName, productName, WarehouseDivision, SaleDate for all offices in Victoria and between 15 June 2017 and 15 October 2017.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications Dasfaa 2023 International Workshops Bdms 2023 Bdqm 2023 Gdma 2023 Bundlers 2023 Tianjin China April 17 20 2023 Proceedings Lncs 13922

Authors: Amr El Abbadi ,Gillian Dobbie ,Zhiyong Feng ,Lu Chen ,Xiaohui Tao ,Yingxia Shao ,Hongzhi Yin

1st Edition

3031354141, 978-3031354144

More Books

Students also viewed these Databases questions

Question

Identify the steps in designing a process layout.

Answered: 1 week ago

Question

What is topology? Explain with examples

Answered: 1 week ago

Question

Describe a persuasive message.

Answered: 1 week ago

Question

Identify and use the five steps for conducting research.

Answered: 1 week ago

Question

List the goals of a persuasive message.

Answered: 1 week ago