Nimlhûg
04-25-2007, 04:20 PM
Howdy,
was wonderin' if someone could help me write this query here, because I'm a bit stuck. Been racking my brain over it for a while now, and I haven't been able to come up with a solution. Any help would be much appreciated.
Here goes:
I have a table, called TagPairs
It has two fields:
TagID
ItemID
Now what I need to be able to do (you know how tags work), is select a list of items from that table, which match all of the given tag ids. The ItemID should be unique (distinct), and it's of course not an issue if the item has more tags that aren't limited. If that makes sense ..
Thanks guys
was wonderin' if someone could help me write this query here, because I'm a bit stuck. Been racking my brain over it for a while now, and I haven't been able to come up with a solution. Any help would be much appreciated.
Here goes:
I have a table, called TagPairs
It has two fields:
TagID
ItemID
Now what I need to be able to do (you know how tags work), is select a list of items from that table, which match all of the given tag ids. The ItemID should be unique (distinct), and it's of course not an issue if the item has more tags that aren't limited. If that makes sense ..
Thanks guys