Question: please help me solve this query using my data, thank you Ppts 2. Write a query to show best-selling products (IDs, product name, and Sold




please help me solve this query using my data, thank you
Ppts 2. Write a query to show best-selling products (IDs, product name, and Sold quantity). Show top five best-selling products. Sort by sold quantity in descending order. 5pts select from order lines; select from orders, select * from payment method, select * from product inventory Query Result x SQL | Fetched 50 rows in 0.045 seconds ORDER_ID PRODUCT_ID ACTUAL PRICE 1 508 1278 8927.57 DISCOUNT QUANTITY TOTAL_AMOUNT 26 1 6606.4 2. 1278 1159 4621.11 63 6 10258.86 3 1320 1192 19037 17 18 284412.78 4 1320 1235 19624.49 30 23 315954.29 5 1320 1141 73 16 2083.49 482.29 509.08 6 1923 1221 17 1 422.54 7 1923 1244 509.08 54 20 4683.54 8 1874 1147 1281.39 56 24 13531.48 9 2001 1143 3209.39 12 17 48012.47 10 2468 1231 20859.66 29 22 325827.89 11 3566 1031 1869826 77 17 73110.2 12 3571 1209 20472.69 55 2 18425.42 80166.64 13 3571 1120 11859.97 48 13 14 3576 1240 243721 40 9 13160.93 15 3576 1167 1585251 5 5 75299.42 16 3677 1188 3 11 86987.82 8152.56 6629.15 17 4241 1186 71 10 19224.54 18 5329 1247 2 4 13494.56 3442.49 14029.8 19 3953 1012 36 2 17958.14 20 4702 1197 20787.76 0 22 457330.72 select from products; select * from shipment method; G select c. First Name I c.Last Name As Customer Name", count(*) As "Total Orders" from customers c, orders o where c.customer_id = o. customer id group by c. First_Name, c.Last Name order by C. Last Name: Query Result x 1 2 3 4 5 6 8 9 SQL | Fetched 50 rows in 0.051 seconds PRODUCT ID CATEGORY_ID PRODUCT NAME PRODUCT DESC 1113 6 Product medical equipments1113 b_7a2:K1vMuqi4qJR+2^8] NE9v) ThsIMBSJUW 1114 1 Product hardwarell14 CEO) =@kd82IB:40Jkre8c.hX: HQ22Yw63 PHMlg 1115 17 Product books1115 zkrp7 | eM@L$D5- 1117 14 Product shoes1117 1"6Ak9: LUodl=KQaEPCyPhoYI4g)"019$JJ? 1118 3 Product appliances1118 Oe!)5KhjEms-WS0"k=/Euu0AQ""$$vdn=Aorx' 1119 7 Product equipmentsl119 ZL+FojMQy\ O*uHQP>$8d[32pn@C+7F
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
