SQL - INNER JOIN
You have two tables:
OrderID | CustomerID | Amount
1 | 101 | 50
2 | 102 | 75
3 | 103 | 100
4 | 101 | 25
CustomerID | Name
101 | John
102 | Jane
104 | Mike
Write an INNER JOIN query to find total order amount per customer name, including only customers with orders. Which query is correct?
OrdersOrderID | CustomerID | Amount
1 | 101 | 50
2 | 102 | 75
3 | 103 | 100
4 | 101 | 25
CustomersCustomerID | Name
101 | John
102 | Jane
104 | Mike
Write an INNER JOIN query to find total order amount per customer name, including only customers with orders. Which query is correct?
