SystemAdmin4
5 years agoQrew Member
Many to Many Summary
Hi
I'm sure there must be a way to do this natively, but I cannot get my head around it, so any help would be appreciated.
My table set up is as follows:
Parent: Lessons (Key: Lesson ID) - circa 1500 records
Child 1: Topic (Key: Topic ID) - circa 50 records
Child 2: Subject (Key: Subject ID) - circa 15 records
Both Parent Child relationships are Many:Many so are joined via their own mapping tables
In other words I have:
Lessons <Mapping Table 1> Topic
Lessons <Mapping Table 2> Subject
Obviously the keys for the mapping tables are system generated and have no contextual meaning.
So, what I want is a report which shows all the 'valid' combinations and permutations of Topic and Subject (with their respective IDs) where a 'valid' combination is one where there is at least one lesson which combines them.
If I was playing in good old MS Access, I'd be able to do this quite easily, but can't work out how to in QB.
Any help greatly appreciated.
Thanks.
David
------------------------------
dmlaycock2000 dmlaycock2000
------------------------------
I'm sure there must be a way to do this natively, but I cannot get my head around it, so any help would be appreciated.
My table set up is as follows:
Parent: Lessons (Key: Lesson ID) - circa 1500 records
Child 1: Topic (Key: Topic ID) - circa 50 records
Child 2: Subject (Key: Subject ID) - circa 15 records
Both Parent Child relationships are Many:Many so are joined via their own mapping tables
In other words I have:
Lessons <Mapping Table 1> Topic
Lessons <Mapping Table 2> Subject
Obviously the keys for the mapping tables are system generated and have no contextual meaning.
So, what I want is a report which shows all the 'valid' combinations and permutations of Topic and Subject (with their respective IDs) where a 'valid' combination is one where there is at least one lesson which combines them.
If I was playing in good old MS Access, I'd be able to do this quite easily, but can't work out how to in QB.
Any help greatly appreciated.
Thanks.
David
------------------------------
dmlaycock2000 dmlaycock2000
------------------------------