Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is my assigment for data base can you solve it and show the out put and code step by step? Lab Exercise - Use

this is my assigment for data base can you solve it and show the out put and code step by step?
image text in transcribed
image text in transcribed
Lab Exercise - Use the online database provided by Live SQL in Find option. - To take an overview about any schema select Find option in live sql, then to access a table in your queries from other schema write shcema name before table name schema_abbreviation.table_name - For each query screenshot the SQL code and the result table. - Arrange everything in 1 file by the query number. - Upload your work to Blackboard as a PDF file. A. Work on the "Products" table from CO schema and apply the queries mentioned below. 1. Display the average price of products (name the result column as AVG_Price). 2. Display the most expensive product price (name the result column as Max_price). B. Work on the "CUSTOMER_ORDER_PRODUCTS" table from CO schema and apply the queries mentioned below. 1. Find the sum of order_total (name the result column as Total) for each customer. You must display customer_id column as shown. 2. Find the total number of different status of orders (cancelled, complete or refunded) using one sql statement. Hint: use group by. 3. Display total number of customers who only cancelled their orders. Hint: use distinct keyword because count function includes duplicates

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Explain the various techniques of Management Development.

Answered: 1 week ago