Re: My honours project - databases using dynamically attached entity-properties

Поиск
Список
Период
Сортировка
Искать
От
Andrew Dunstan
Тема
Re: My honours project - databases using dynamically attached entity-properties
Дата
Msg-id
45F8158E.50402@dunslane.net
Ответ на
Список
Дерево обсуждения
My honours project - databases using dynamically attached entity-properties Edward Stanley <Edward.Stanley@mcs.vuw.ac.nz>
Re: My honours project - databases using dynamically attached entity-properties Heikki Linnakangas <heikki@enterprisedb.com>
Re: My honours project - databases using dynamically attached entity-properties Josh Berkus <josh@agliodbs.com>
Re: My honours project - databases using dynamically attached entity-properties "Andrew Hammond" <andrew.george.hammond@gmail.com>
Re: My honours project - databases using dynamically attached entity-properties Josh Berkus <josh@agliodbs.com>
Re: My honours project - databases using dynamically attached entity-properties "Joshua D. Drake" <jd@commandprompt.com>
Re: My honours project - databases using dynamically attached entity-properties Richard Huxton <dev@archonet.com>
Re: My honours project - databases using dynamically attached entity-properties Csaba Nagy <nagy@ecircle-ag.com>
Re: My honours project - databases using dynamically attached entity-properties "Andrew Hammond" <andrew.george.hammond@gmail.com>
Re: My honours project - databases using dynamically attached entity-properties Richard Huxton <dev@archonet.com>
Re: My honours project - databases using dynamically attached entity-properties Gregory Stark <stark@enterprisedb.com>
Re: My honours project - databases using dynamically attached entity-properties Josh Berkus <josh@agliodbs.com>
Re: My honours project - databases using dynamically attached entity-properties Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: My honours project - databases using dynamically attached entity-properties tomas@tuxteam.de
Re: My honours project - databases using dynamically attached entity-properties "A.M." <agentm@themactionfaction.com>
Re: My honours project - databases using dynamically attached entity-properties Csaba Nagy <nagy@ecircle-ag.com>
Re: My honours project - databases using dynamically attached entity-properties Gregory Stark <stark@enterprisedb.com>
Re: My honours project - databases using dynamically attached entity-properties Andrew Dunstan <andrew@dunslane.net>
Re: My honours project - databases using dynamically attached entity-properties tomas@tuxteam.de
Re: My honours project - databases using dynamically attached entity-properties Andrew Dunstan <andrew@dunslane.net>
Re: My honours project - databases using dynamically attached entity-properties tomas@tuxteam.de
Re: My honours project - databases using dynamically attached entity-properties Richard Huxton <dev@archonet.com>
Re: My honours project - databases using dynamically attached entity-properties Teodor Sigaev <teodor@sigaev.ru>
Re: My honours project - databases using dynamically attached entity-properties tomas@tuxteam.de
Joshua D. Drake wrote:
> Gregory Stark wrote:
>   
>> "David Fetter"  writes:
>>
>>     
>>> CREATE TABLE symptom (
>>>     symptom_id SERIAL PRIMARY KEY, /* See above. */
>>>     ...
>>> );
>>>
>>> CREATE TABLE patient_presents_with (
>>>     patient_id INTEGER NOT NULL REFERENCES patient(patient_id),
>>>     symptom_id INTEGER NOT NULL REFERENCES symptom(symptom_id),
>>>     UNIQUE(patient_id, symptom_id)
>>> );
>>>       
>> I'm just glad I don't have your doctor. I hope mine doesn't think symptoms are
>> all boolean values.
>>     
>
> With a unique across (patient_id,symptom_id) you could have a single
> patient with as many unique symptoms as could be listed.
>
>
>
>   

I think Greg is suggesting that the table needs to be augmented with, 
say, a severity field.

cheers

andrew

В списке pgsql-hackers по дате отправления
От: Csaba Nagy
Дата:
От: mark@mark.mielke.cc
Дата:
FAQ