But I'm having problems understanding how the tables fit together. What I want is to export all the DVDs and then all the "folders" that I have set up so that I can create a web view of this. This is how I *thought* they fit together, but it isn't working.:
1: select * from ZCOLLECTION
This is what I thought was the categories table. I assumed that the unique id of the category was the field "Z_PK"
2: select * from Z_1ENTRIES
This is what I assumes was the relational table that tells me what DVD is in what folder/category. I assumed that "Z_1COLLECTIONS" was the id of the category "Z_PK" above and that "Z_3ENTRIES" was the id of the DVD.
3: select * from ZENTRY
This gets me all the DVDs, and I assumed that the field "ZUID" was the unique id of the DVD, so matching Z_PK -> Z_1COLLECTIONS <-> Z_3ENTRIES -> ZUID I thought that I would be able to map the DVDs to the different collections. But it didn't work out like that.
So, I seem to have the correct number of items in each collection, but it's the wrong items for some reason. I'm assuming that the Z_1ENTRIES.Z_3ENTRIES -> ZENTRY.ZUID relation is wrong, but changing it to ZENTRY.Z_PK doesn't help either.
I need some help figuring out this relationship
![Smile :)](./images/smilies/icon_smile.gif)