Question: Getting an error: Error Code: 1 0 6 6 . Not unique table / alias: 'order _ line'. Please help correct the code and provide
Getting an error:
Error Code: Not unique tablealias: 'orderline'. Please help correct the code and provide an updated query.
SELECT customer.firstname, customer.lastname, sumorderline.quantitysold product.productprice as Ordertotal
FROM customer, orderline
INNER JOIN orders ON orders.customerId customer.customerid
INNER JOIN
SELECT orderid
FROM orderline
INNER JOIN product ON product.productid orderline.productid
GROUP BY orderid
AS orders ON orders.orderid orderline.orderid
WHERE orderline.ordertotal
SELECT AVGSUMquantitysold productprice
FROM orderline, product
INNER JOIN orderline ON orderline.productid product.productid
GROUP BY orderline.orderid
;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
