Advertisement

01.07.2008 at 10:08AM PST, ID: 23064241
[x]
Attachment Details

MySQL correct schema for items with multiple categories...

Asked by lsolheim in MySQL

Tags: mysql, categories, multiple, schema

I am trying to create my first dynamic site in MySQL.  It is a site which contains links to various websites that will be listed by appropriate categories.

The question is... How do I need to structure the tables so that I can create a relationship which allows for one site to be listed under multiple categories (which are chosen from another table of available categories)?

Do I need three tables, or just two and what fields need to relate to each other to make this work most efficiently?Start Free Trial
[+][-]01.07.2008 at 10:26AM PST, ID: 20601627

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MySQL
Tags: mysql, categories, multiple, schema
Sign Up Now!
Solution Provided By: Frosty555
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01.07.2008 at 10:31AM PST, ID: 20601680

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628