Hi Guys,
I am designing a database for my girlfriend which uses a category -> sub-category -> item hierarchy for organisational purposes.
I have the following tables:
tblPhase
tblCategory
tblRisk
where Phase -> Category is one-to-many
and Category -> Risk is one-to-many
Risk table stores a Category Number and Category table stores a Phase Number. So each risk is hierarchically connected to a single Phase through the Category table...
Now, it's easy to find out all the risks in one category, but how can I query for all the risks in one phase (could be several categories) using SQL AND/OR VB?
Any help is much appreciated!
I've already googled and there's not much help on this subject tbh...
Thanks!
I am designing a database for my girlfriend which uses a category -> sub-category -> item hierarchy for organisational purposes.
I have the following tables:
tblPhase
tblCategory
tblRisk
where Phase -> Category is one-to-many
and Category -> Risk is one-to-many
Risk table stores a Category Number and Category table stores a Phase Number. So each risk is hierarchically connected to a single Phase through the Category table...
Now, it's easy to find out all the risks in one category, but how can I query for all the risks in one phase (could be several categories) using SQL AND/OR VB?
Any help is much appreciated!
I've already googled and there's not much help on this subject tbh...
Thanks!