Re: I don't understand... - Mailing list pgsql-hackers

From Gabor Csuri
Subject Re: I don't understand...
Date
Msg-id 9east6$1uos$1@news.tht.net
Whole thread Raw
In response to I don't understand...  ("Gabor Csuri" <gcsuri@coder.hu>)
Responses Re: Re: I don't understand...  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: Re: I don't understand...  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-hackers
Hi All again,
after I deleted the "null row" from carname:
SELECT DISTINCT h_name
FROM haszon
WHERE h_name NOT IN (SELECT cn_name FROM carname)

+---------------+
| h_name        |
+---------------+
| DAEWOO-FSO    |
| DAEWOO-LUBLIN |
| GAZ           |
| TATA          |
+---------------+
Query OK, 4 rows in set (0,13 sec)

It's working now, but is it correct?

Bye, Gabor.

> I think it's good, but
> SELECT DISTINCT h_name
> FROM haszon
> WHERE h_name NOT IN (SELECT cn_name FROM carname)
>
> +--------+
> | h_name |
> +--------+
> +--------+
> Query OK, 0 rows in set (0,10 sec)
>
> Why ?
>
> postgres-7.1 rpm on RedHat 7.0
>
> Thanks, Gabor





pgsql-hackers by date:

Previous
From: Raoul Callaghan
Date:
Subject: "select for update" question....
Next
From: Andrew Rawnsley
Date:
Subject: Queries across multiple databases  (was: SELECTfrom a table in another database).