Re: Figuring out relationships between tables.

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Figuring out relationships between tables.
Дата
Msg-id 069F84CC-482D-47E3-B19C-642DAA797ABE@thebuild.com
обсуждение исходный текст
Ответ на Figuring out relationships between tables.  (Andrew Cooper <kairoscreative@gmail.com>)
Список pgsql-general
On Aug 23, 2009, at 7:47 AM, Andrew Cooper wrote:
> An employee can only have 1 manager/supervisor but the hierarchy can
> be varying depths.

Traditionally, that's done by having a "supervisor" field as part of
the employee record, with either NULL or a special marker value to
indicate "no supervisor."  The new WITH RECURSIVE functionality of 8.4
makes dealing with tree structures like this much easier.

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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Strange "missing tables" problem
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Multiple table entries?