954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

relationship between area table

Hi

I am trying to design db to coupon site
my problem:
item can be in several areas.
like : chair in South and North
for that I have created the extra categorytoarea table but i dont know how the relationship should be with other tables

Attachments gggg.png 63.19KB
ofir0803
Light Poster
39 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

Hi

I am trying to design db to coupon site my problem: item can be in several areas. like : chair in South and North for that I have created the extra categorytoarea table but i dont know how the relationship should be with other tables

please help...

ofir0803
Light Poster
39 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

if you are saying that the item is to be available in multiple but not necessarily all areas then you need to create a new table call ItemArea, for example.

ItemArea (ItemAreaId, AreaId, ItemId)

then change the relationship to insert this table between Item and Area in you model.

ChrisPadgham
Posting Pro in Training
413 posts since Sep 2009
Reputation Points: 102
Solved Threads: 78
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You