part A Find the average of order quantity with item_code '200¹. part B Which item has the highest unit price? mysql> select * from order_db; | orderid | custid | itemcode | orderquantity | deliverydate 2 | 2 | 2 2 | 2 | 2 2 250 200 500 300 75 ~~~~N 2 2 B 2 5 rows in set (0.00 sec) mysql> select * from item_db; + | item_code | item_name | current_stock 10 33 | C 85 5 200 | 1 500 | 9 6 rows in set (0.00 sec) 800 600 125 200 265 100 | 300 250 | 550 | 300 | 300 2020-05-30 2021-09-21 | 2023-06-02 2020-05-29 2020-05-29 | unitprice | + 40 | 5| 150 650 15 | 100 | | | с | R | D | C | c modeofpayment | date_of_order | 2020-05-28 1998-02-15 2024-09-03 1998-02-15 1998-02-15

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter1: Overview Of Database Concepts
Section: Chapter Questions
Problem 14MC: A unique identifier for a data row that consists of more than one field is commonly called...
icon
Related questions
Question
100%
part A Find the average of order quantity with item_code '200¹.
part B Which item has the highest unit price?
Transcribed Image Text:part A Find the average of order quantity with item_code '200¹. part B Which item has the highest unit price?
mysql> select * from order_db;
| orderid | custid | itemcode | orderquantity | deliverydate
2 |
2 |
2
2 |
2 |
2
2
250
200
500
300
75
~~~~N
2
2 B
2
5 rows in set (0.00 sec)
mysql> select * from item_db;
+
| item_code | item_name | current_stock
10
33 | C
85
5
200 | 1
500 | 9
6 rows in set (0.00 sec)
800
600
125
200
265
100 |
300
250 |
550 |
300 |
300
2020-05-30
2021-09-21
| 2023-06-02
2020-05-29
2020-05-29
| unitprice |
+
40 |
5|
150
650
15 |
100 |
|
| с
| R
| D
| C
| c
modeofpayment | date_of_order |
2020-05-28
1998-02-15
2024-09-03
1998-02-15
1998-02-15
Transcribed Image Text:mysql> select * from order_db; | orderid | custid | itemcode | orderquantity | deliverydate 2 | 2 | 2 2 | 2 | 2 2 250 200 500 300 75 ~~~~N 2 2 B 2 5 rows in set (0.00 sec) mysql> select * from item_db; + | item_code | item_name | current_stock 10 33 | C 85 5 200 | 1 500 | 9 6 rows in set (0.00 sec) 800 600 125 200 265 100 | 300 250 | 550 | 300 | 300 2020-05-30 2021-09-21 | 2023-06-02 2020-05-29 2020-05-29 | unitprice | + 40 | 5| 150 650 15 | 100 | | | с | R | D | C | c modeofpayment | date_of_order | 2020-05-28 1998-02-15 2024-09-03 1998-02-15 1998-02-15
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 1 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr