M
mark_downes
I have 3 tables like the following:
TableName: Keywords KeywordsToObjects Objects
Fields: KeywordID Name KeywordID ObjectID ObjectID
Data: 1 Animal 1 80 80
2 Dog 2 80 81
3 Cat 1 81
3 81
Thus object 80 is associated with the keywords Animal and Dog
object 81 is associated with the keywords Animal and Cat
How do I write a query to give me back all objects which match the
following keywords:
(Animal OR Dog) AND (Cat)
which should give back all fields for object 81?
TableName: Keywords KeywordsToObjects Objects
Fields: KeywordID Name KeywordID ObjectID ObjectID
Data: 1 Animal 1 80 80
2 Dog 2 80 81
3 Cat 1 81
3 81
Thus object 80 is associated with the keywords Animal and Dog
object 81 is associated with the keywords Animal and Cat
How do I write a query to give me back all objects which match the
following keywords:
(Animal OR Dog) AND (Cat)
which should give back all fields for object 81?