[FONT='PrimaSans BT,Verdana,sans-serif']Hello,
I've been trying to work this out but have not been able to solve this. If anyone is able to help it would be greatle appreciated. The below query (simplified) works fine in MySQL but I'm not able to make it work in Access:
SELECT customer.customer_id, cust_category.category_name
FROM customer
LEFT JOIN
(
cust_category
INNER JOIN categories_of_customers ON categories_of_customers.category_id = cust_category.category_id
)
ON categories_of_customers.customer_id = customer.customer_id;
I'm trying to present all the customers and the name of their category. Some customers don't belong to any category but I would still like to include them in the result.
What would be the best way to do this in Access?
Many thanks!
[/FONT]
I've been trying to work this out but have not been able to solve this. If anyone is able to help it would be greatle appreciated. The below query (simplified) works fine in MySQL but I'm not able to make it work in Access:
SELECT customer.customer_id, cust_category.category_name
FROM customer
LEFT JOIN
(
cust_category
INNER JOIN categories_of_customers ON categories_of_customers.category_id = cust_category.category_id
)
ON categories_of_customers.customer_id = customer.customer_id;
I'm trying to present all the customers and the name of their category. Some customers don't belong to any category but I would still like to include them in the result.
What would be the best way to do this in Access?
Many thanks!
[/FONT]