sql question (hopefully)

From: "Mel Jamero" <mel(at)gmanmi(dot)tv>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: sql question (hopefully)
Date: 2003-06-18 12:38:17
Message-ID: 000001c33596$7eafe8d0$1b06a8c0@CMPMEL
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • number of rows at 2003-06-13 09:04:56 from Marcus Andree S. Magalhaes

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message A.Bhuvaneswaran 2003-06-18 12:41:41 Re: help:steps needed to get the content of table from the
Previous Message Harry Broomhall 2003-06-18 08:59:55 Re: Commit within a PL/PGSQL procedure