Chain/Thread Problem

Поиск
Список
Период
Сортировка
От sammynash@uboot.com (Sammy)
Тема Chain/Thread Problem
Дата
Msg-id 6729af8d.0305160646.d9ab2d2@posting.google.com
обсуждение исходный текст
Ответы Re: Chain/Thread Problem  (Richard Huxton <dev@archonet.com>)
Список pgsql-sql
Hi, 

I have a SQL problem for you all. What SQL qurey would I have to make
on the following table to extract the chain (thread) of emails in a
conversation.

        id|emailid|referenceid        -----------------------         1|  e125 |   Null             (Start of chain)
    2|  r1fe |   e125             (2nd letter in chain)         ...         ...         n|  e4ju |   r1fe
(3rdin chain)
 

ie
a sucessulf qurey would return rows 1,2 & n because they are all in
the chain.

Hope you can help me with my problem,


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

Предыдущее
От: Mike Winter
Дата:
Сообщение: Efficiency Issue with "SELECT IN (..)" and "SELECT .. OR .."
Следующее
От: "J Sensel"
Дата:
Сообщение: Re: Chain/Thread Problem