Advice about a parent-child relation design

Поиск
Список
Период
Сортировка
От JORGE MALDONADO
Тема Advice about a parent-child relation design
Дата
Msg-id CAAY=A7-CjNzc-rev0rNuq86_=AS3sPqJPsE3jQk2WLcRe_tbvA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Advice about a parent-child relation design  (Felipe Santos <felipepts@gmail.com>)
Re: Advice about a parent-child relation design  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Re: Advice about a parent-child relation design  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Список pgsql-novice
I have 2 tables: parent and child. One of the fields, which should supposedly be part of the parent table, might occassionaly be different for one of the child table records. 

ParentTable
* id
* date
* customer  <-----
* reference
* other fields...


ChildTable
* id-parent
* document type
* customer  <-----

It is possible that the customer field is not the same for all of the child records. This is a very specific (and strange) situation that might eventually appear in the information system I am developing. I suppose that such a field must be part of the child table even if this case does not appear frequently.

I am writing to ask for your feedback and see if there is another possible approach.

With respect,
Jorge Maldonado

В списке pgsql-novice по дате отправления:

Предыдущее
От: "马修/Матвей/Mateo/Matt Buse"
Дата:
Сообщение: Re: Combine Top-k with similarity search extensions
Следующее
От: Felipe Santos
Дата:
Сообщение: Re: Advice about a parent-child relation design