chinkygogo
New member
- Local time
- Today, 13:42
- Joined
- Aug 21, 2006
- Messages
- 7
Hi
I have a table full or resources that can be categorised as many different types of categories. i.e. tblResources has a one to many relationship with tblCategory. if i could categorise a resourse as either a 'Listening' resource or a 'Reading' resource this relationship would capture it. however, i don't want the user to categorise a resource as listening twice! please see below for example:
ALLOWED
tblResources
resource_id | resource_name
1 'first resource'
tblCategories
id | resource_id | Category
1 1 Listening
2 1 Reading
NOT ALLOWED
tblResources
resource_id | resource_name
1 'first resource'
tblCategories
id | resource_id | Category
1 1 Listening
2 1 Reading
3 1 Reading
in the 'NOT ALLOWED' example you can see that 'first resource' is categorised as a Reading resource twice.
thanks
pete
I have a table full or resources that can be categorised as many different types of categories. i.e. tblResources has a one to many relationship with tblCategory. if i could categorise a resourse as either a 'Listening' resource or a 'Reading' resource this relationship would capture it. however, i don't want the user to categorise a resource as listening twice! please see below for example:
ALLOWED
tblResources
resource_id | resource_name
1 'first resource'
tblCategories
id | resource_id | Category
1 1 Listening
2 1 Reading
NOT ALLOWED
tblResources
resource_id | resource_name
1 'first resource'
tblCategories
id | resource_id | Category
1 1 Listening
2 1 Reading
3 1 Reading
in the 'NOT ALLOWED' example you can see that 'first resource' is categorised as a Reading resource twice.
thanks
pete