sql question (hopefully) - Mailing list pgsql-novice

From Mel Jamero
Subject sql question (hopefully)
Date
Msg-id 000001c33596$7eafe8d0$1b06a8c0@CMPMEL
Whole thread Raw
In response to number of rows  ("Marcus Andree S. Magalhaes" <marcus.magalhaes@vlinfo.com.br>)
Responses Re: sql question (hopefully)
Re: sql question (hopefully)
List pgsql-novice
will try to keep this as short as possible. =)

1. "select id from a_table where id not in (2,3,4)" works fine

2. "select id from a_table where id not in (select id from b_table)" works
fine if the output of the "select id from b_table" looks like:
id
----
 2
 3
 4

problem is "select id from b_table" in #2 statement has the following
output:
id
----
2,3,4

how do i do execute the query in a single sql statement?

thanks in advance.

mel



pgsql-novice by date:

Previous
From: Harry Broomhall
Date:
Subject: Re: Commit within a PL/PGSQL procedure
Next
From: "A.Bhuvaneswaran"
Date:
Subject: Re: help:steps needed to get the content of table from the