D
Dalt
Let's say I have 3 tables.
1) Customers
2) Orders
3) Complaints
Assume that Orders.FK and Complaints.FK are used to relate them to
Customers.PK.
What would the query look like to SELECT all CustomerID, CustomerName FROM
Customers and also count how many orders and how many complaints each
customer has?
Can anyone help? Thanks!
1) Customers
2) Orders
3) Complaints
Assume that Orders.FK and Complaints.FK are used to relate them to
Customers.PK.
What would the query look like to SELECT all CustomerID, CustomerName FROM
Customers and also count how many orders and how many complaints each
customer has?
Can anyone help? Thanks!