Re: dumb question

Поиск
Список
Период
Сортировка
От Steve Clark
Тема Re: dumb question
Дата
Msg-id 8e59c74873484d7980e0842369d328d0
обсуждение исходный текст
Ответ на Re: dumb question  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
Thanks all the below seem to do the trick.

On 06/02/2016 01:58 PM, David G. Johnston wrote:
> select max(id) from yourtable where sts=0 and id not in (select ref_id from yourtable);

select max(id) from yourtable where sts=0 and id not in (select ref_id from yourtable);

--
Stephen Clark

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