swaybright
Technical User
My actual application is a bit more complex, but this example demonstrates what I want to accomplish. I have 5 tables:
JellyBeans
Cups
CupDetails
Bowls
BowlDetails
So basically I can create an inventory of cups that have some combination of jellybeans of specific colors, then I can use that inventory of cups to create bowls of jellybeans to make further combinations of colors. For any given bowl of jellybeans, I can trace the exact number of each color.
What I would like to do is select the bowls that have only a specified dynamic combination of colors. For example select all bowls that have only red, white, and blue jellybeans.
Note also that new colors can be added at anytime, so I would like to maintain this flexibility without rewriting the query every time a new color is added to the JellyBeans table.
Thanks!
Shane
JellyBeans
JellyBeanID
Color
Color
Cups
CupID
CupName
CupName
CupDetails
CupDetailsID
CupID
JellyBeanID
NumberofBeans
CupID
JellyBeanID
NumberofBeans
Bowls
BowlID
BowlName
SurveyScore
BowlName
SurveyScore
BowlDetails
BowlDetailsID
BowlID
CupID
NumberofCups
BowlID
CupID
NumberofCups
So basically I can create an inventory of cups that have some combination of jellybeans of specific colors, then I can use that inventory of cups to create bowls of jellybeans to make further combinations of colors. For any given bowl of jellybeans, I can trace the exact number of each color.
What I would like to do is select the bowls that have only a specified dynamic combination of colors. For example select all bowls that have only red, white, and blue jellybeans.
Note also that new colors can be added at anytime, so I would like to maintain this flexibility without rewriting the query every time a new color is added to the JellyBeans table.
Thanks!
Shane