Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started