From: | Modulok <modulok(at)gmail(dot)com> |
---|---|
To: | Dann Corbit <DCorbit(at)connx(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: data modeling genes and alleles... help! |
Date: | 2013-03-30 08:49:26 |
Message-ID: | CAN2+EpZwkH_buwF6m_np1qbtmfZW7moUbttQv5esFt8sPeRXXw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Everything should have an id, and combination tables like person-gene should
> have the person id + the gene id.
> You might look at this tool to make your life easier:
> https://github.com/pgmodeler/pgmodeler
>
> First, read up on this:
> http://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model
> then, it will be obvious how to use the tool.
>> Everything should have an id, and combination tables like person-gene should
>> have the person id + the gene id.
Yes. The model provided is a minimal approximation of the actual model. The
real thing uses numeric id columns to link tables, as well as many constraints
to ensure valid input and about a hundred other tables. In the example I used
names as keys rather than numeric ID's to try and make it a little easier to
follow my intent. Perhaps this had the opposite effect.
-Modulok-
From | Date | Subject | |
---|---|---|---|
Next Message | Julian | 2013-03-30 09:36:22 | Re: Money casting too liberal? |
Previous Message | Dann Corbit | 2013-03-30 07:03:24 | Re: data modeling genes and alleles... help! |