I think im starting this thread to clarify whether my database design is correct but mort importantly to establish a correct query.
I have the following tables
organisation
orgid
address1
etc
activity
activityid
activity
expertise
expertid
expertise
Basically and organisation can do one or more activities and areas of expertise - simple right ....one to many.
Now this is where im wanting to clarify. I want to be able to store the activities/expertise in other tables and i thought I would do it by having two tables which stored the multiple activities/areas of expertise an organisation participates in....
activity_org
activityorg_id
orgid
activityid
and...
expert_org
expertorg_id
orgid
expertid
so activity_org my look like this: http://www.mindseyemidlands.co.uk/actorg.gif
so organisation id 3 does activities with an id of 8,12 and 25 etc
I have created a form which lists all the activity/experts and you can choose which ones you want.
my questions then are
a) is this database design correct and if not what do i do to make it good?
b) What will my query look like if I want to list the organisations that do those activities/areas of expertise as chosen in the form.
thankyou very much fopr listening