Hi all,
i have a table with the following structure:
entry_no ID item amount
1 123 item1 2
2 123 item2 1
3 123 item3 3
4 456 item1 1
5 456 item4 4
Now what i would like to achieve is to create a view that returns the data in the following form:
ID item1 item2 item3 item4
123 2 1 3
456 1 4
The problem is though that i do not know for sure how many items are associated with an id, it might be zero or ten...
Thanks for any help!
i have a table with the following structure:
entry_no ID item amount
1 123 item1 2
2 123 item2 1
3 123 item3 3
4 456 item1 1
5 456 item4 4
Now what i would like to achieve is to create a view that returns the data in the following form:
ID item1 item2 item3 item4
123 2 1 3
456 1 4
The problem is though that i do not know for sure how many items are associated with an id, it might be zero or ten...
Thanks for any help!