List:General Discussion« Previous MessageNext Message »
From: Date:January 1 1970 12:00am
Subject:RE: DB design for quotes and subjects
Date: Thu, 1 Jul 1999 15:24:24 -0300
View as plain text  
I would create a separate table with a topic-field and a 
quote-field. In this way, you can have any number of
quotes associated with any number of topics. 
And if you need some topic to be "principal", you can 
have a third fields with, for example, a number indicating
preference (1 is the principal topic, 2 is less, etc. ), or
just 1 for principal, 0 for others. 

> -----Mensaje original-----
> De:	PUB:Chris Lott [SMTP:chrisl@stripped]
> Enviado el:	Jueves 1 de Julio de 1999 15:02
> Para:	mysql@stripped
> Asunto:	DB design for quotes and subjects
> I am building an app for an English Dept faculty member that is a kind of
> literary quote encyclopedia using PHP and MySQL. I am trying to lay the
> best
> design groundwork for growth. I plan to have a table of quotes and a table
> of topics, etc. My question is: what is the best way to relate each quote
> to
> its variable number of topics: simply a topic field with a list of ID's
> that
> relate to the topic table? Or should there be topic1, topic2, etc columns
> with the key? My worry with lists  is that it will be hard later to deal
> with "weighting" the topics: ie sometimes one might want all quotes
> related
> to topic "A" but other times one might want only quotes where topic "A" is
> the primary topic (first in the list if using the list scheme).
> c
> --
> @who: Chris Lott | chrisl@stripped | IT Specialist | University
> of
> AK
> @where: p907.474.6350 | f907.474.6841 |
> @quote: Philosophy n. A route of many roads leading from nowhere to
> nothing
> ---------------------------------------------------------------------
> Please check "" before
> posting. To request this thread, e-mail mysql-thread6389@stripped
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.
DB design for quotes and subjectsChris Lott1 Jul
  • Re: DB design for quotes and subjectsjonathan michaels2 Jul
RE: DB design for quotes and subjectsUnknown Sender1 Jul