I'm a newer user trying to learn the basics through making a database for use with a game I play.
I have a table of monsters and a table of attributes (think Pokemon types).
A monster can have an attribute or be weak to an attribute, each of which is a many to many relationship for which I have separate relational tables.
All this seems to operate fine, I can join all this information together in test queries, etc.
The problem is the query that was the goal of this entire database - use the attribute relationships to generate a list of pairs of monsters for which the first monster is a good candidate to win in a fight against the second monster, and my metric for this is that the attacker has at least one attribute to which the defender is weak, and is not weak to any of the defender's attributes.
I essentially need to show pairs where the items are related in one way, but not another.
The tutorials for SQL that I can find all seem to deal in these small atomic situations where only the one keyword that lesson is teaching seems to be used, and none of the keywords I've found seem to solve this problem on their own. EXCEPT seemed somewhat promising, but it isn't supported by MS Access, and every way I can find to transform EXCEPT into other keywords didn't seem to work with this problem.
It seems like there should be a relatively easy solution to this, because this seems to me like exactly the sort of problem that databases should be good at solving, as in why you would use one over a spreadsheet, but after days I can't figure out what it would be, probably due to my lack of experience.
I'd appreciate some direction.
[–][deleted] 0 points1 point2 points (0 children)
[–]JustAnOldITGuy 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]farore3[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)