imstillatwork
IS-IT--Management
Not sure how to word this, but I'll try to exlpain it as well as I can.
First lets start with the tables.
Three of them. two objects and a link/join table to join the two objects together (two objects being pages and items)
Pages table:
pageID, page details..
Items table:
ItemID, item details..
pageItems table:
PageID,ItemID
So it's a standard many relation.
Given a PageID I need all of the items that do NOT hava relation to that pageID. initially easy enough but if an item is related to more then one page - it still shows up in my results and I don't want that item at all.
So If I am working with PageID = 1
and there are the following rows in the pageItem table
pageID | ItemID
1 1
1 2
1 3
2 1
2 2
I want, given pageID 1, only to return itemID 3.
Kevin
Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
First lets start with the tables.
Three of them. two objects and a link/join table to join the two objects together (two objects being pages and items)
Pages table:
pageID, page details..
Items table:
ItemID, item details..
pageItems table:
PageID,ItemID
So it's a standard many relation.
Given a PageID I need all of the items that do NOT hava relation to that pageID. initially easy enough but if an item is related to more then one page - it still shows up in my results and I don't want that item at all.
So If I am working with PageID = 1
and there are the following rows in the pageItem table
pageID | ItemID
1 1
1 2
1 3
2 1
2 2
I want, given pageID 1, only to return itemID 3.
Kevin
Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!