L
Luke Bailey
I have a table storing customers (using a 5-digit code as key) and a field
called ORDERS_CAT which stores A,B,C,D,E depending on category of the order.
Then another field called ORDERS_COUNT showing total count of the order.
There are many other fields, but these are the ones pertinent here. What I
want in the results is all 5-digit codes with each of the categories and a
count. But if there were no orders (for example) in ORDERS_CAT of B,C,D for
a 5-digit customer, the 5 digit customer only has 2 records in query. How do
I force a query to have 5 records in the query showing zeros for those
records with no entries?
Hope this makes sense.
And thanks for any ideas!
called ORDERS_CAT which stores A,B,C,D,E depending on category of the order.
Then another field called ORDERS_COUNT showing total count of the order.
There are many other fields, but these are the ones pertinent here. What I
want in the results is all 5-digit codes with each of the categories and a
count. But if there were no orders (for example) in ORDERS_CAT of B,C,D for
a 5-digit customer, the 5 digit customer only has 2 records in query. How do
I force a query to have 5 records in the query showing zeros for those
records with no entries?
Hope this makes sense.
And thanks for any ideas!