Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

FN-FORUM: Database structure question

date posted 30th April 2007 14:01

I have a database structure as follows:

tblGroups
ID
Description
_________

tblCourseCategories
ID
GroupID
Description
_________

tblCourses
ID
CourseCategoryID
Description
_________


This works fine except my client has mentioned he would like to have
the ability to add a course to more than 1 Course Category. Currently
to do this, he has to add the course details twice so that it appears
under 2 category listings.

How would I go about changing the system so that he is able to just
add a course once, and then link it to as many categories as he wants?
Would I need an additional table that is used just for linking?

I.E:

tblCourseListings
ID
CourseID
CourseCategoryID

And then remove the CourseCategoryID field that acts as a foreign key
from tblCourses.

Is this the right way to do things?

TIA
Paul



Messages by Day
April 30th 2007
April 29th 2007
April 28th 2007
April 27th 2007
April 26th 2007
April 25th 2007
April 24th 2007
April 23rd 2007
April 22nd 2007
April 21st 2007
April 20th 2007
April 19th 2007
April 18th 2007
April 17th 2007
April 16th 2007
April 15th 2007
April 14th 2007
April 13th 2007
April 12th 2007
April 11th 2007
April 10th 2007
April 9th 2007
April 8th 2007
April 7th 2007
April 6th 2007
April 5th 2007
April 4th 2007
April 3rd 2007
April 2nd 2007
April 1st 2007


Messages by Month
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
March 2007
January 2007


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000