Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PK Customers customer_id PK address_id FK first_name last_name phone note Addresses address_id city state country note Factors Factor_id PK customer_id FK payment method_id FK date

image text in transcribed

PK Customers customer_id PK address_id FK first_name last_name phone note Addresses address_id city state country note Factors Factor_id PK customer_id FK payment method_id FK date note Payment peyment_method_id PK payment_name note PK Factor_items factor_id FK _id FK quantity Price note goods good_id good_code good_name good cost good_group_id Good_groups good_group_id PK name taxrate note FK **Please answer the following questions using ORACLE SQL** i-) Which good_group (name) does have the most number of customers? (output : group name) ii-) What is the average number of goods in each factor? (output : a number) iii-) Which city has the most number of good_groups? (output : city name) PK Customers customer_id PK address_id FK first_name last_name phone note Addresses address_id city state country note Factors Factor_id PK customer_id FK payment method_id FK date note Payment peyment_method_id PK payment_name note PK Factor_items factor_id FK _id FK quantity Price note goods good_id good_code good_name good cost good_group_id Good_groups good_group_id PK name taxrate note FK **Please answer the following questions using ORACLE SQL** i-) Which good_group (name) does have the most number of customers? (output : group name) ii-) What is the average number of goods in each factor? (output : a number) iii-) Which city has the most number of good_groups? (output : city name)

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

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

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

When should you avoid using exhaust brake select all that apply

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago