I ran the following simple query that looks like the example below:
(Briefly; one order has from 1 to N items and the foreign key is order_id in table items)
SELECT orders.*, items.*
FROM orders
LEFT JOIN
items ON orders.id= items.order_id
This shows something like:
order.id item.id
1 34
1 22
1 90
2 44
2 19
2 21
2 22
I want an output like:
order.id item.id
1 34
22
90
2 44
19
21
22
How to achieve that on Access 2007 ?
Thank you in advance,
Miloud B.
The only way I can think of doing this would be a self join with an aggregate. It will be easier/better handled in your application.