G
Guest
I'm having trouble with something that I think should be easy but just can't
seem to grasp...
I have a table of items. I also have a table of keywords that are
associated with items in the item table through the use of a composite table
that has a primary key of a foreign key from both the Items and Keyword
table, similar to this:
Items Table Keyword Table Composite
Table
Item_ID Item Keyword_ID Keyword Item_ID
Keyword_ID
1 Baseball 1 Baseball 1
1
2 Ball
1 2
My question is this:
How can I query the items table based on a keyword search using and AND
operator: i.e. How can I find items that have Keyword 1 (Baseball) AND
Keyword 2 (Ball) associated with them?
seem to grasp...
I have a table of items. I also have a table of keywords that are
associated with items in the item table through the use of a composite table
that has a primary key of a foreign key from both the Items and Keyword
table, similar to this:
Items Table Keyword Table Composite
Table
Item_ID Item Keyword_ID Keyword Item_ID
Keyword_ID
1 Baseball 1 Baseball 1
1
2 Ball
1 2
My question is this:
How can I query the items table based on a keyword search using and AND
operator: i.e. How can I find items that have Keyword 1 (Baseball) AND
Keyword 2 (Ball) associated with them?