Re: dumb question - Mailing list pgsql-general

From Steve Clark
Subject Re: dumb question
Date
Msg-id 8e59c74873484d7980e0842369d328d0
Whole thread
In response to Re: dumb question  ("David G. Johnston" <david.g.johnston@gmail.com>)
List 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 by date:

Previous
From: rverghese
Date:
Subject: Partitioned tables do not return affected row counts to client
Next
From: Steve Clark
Date:
Subject: dumb question