Re: A strange problem - Mailing list pgsql-general

From Stephan Szabo
Subject Re: A strange problem
Date
Msg-id 20050827082325.R73063@megazone.bigpanda.com
Whole thread Raw
In response to A strange problem  (Tang Tim Hei <timheit@netvigator.com>)
List pgsql-general
On Sat, 27 Aug 2005, Tang Tim Hei wrote:

> Hi,

>   I'm new to postgresql. Anytime I type the following command to the
>   database to run, it give me no result record if table 'country' is
>   empty but can get result if 'country' is not empty. Is this so
>   strange?

Not really. You're doing a cartesian join between test.currency and
test.country.  If there are no rows in test.country, there are no rows in
the output of the from clause.

>   select A.* from test.currency A, test.country B where A.curr_cd='USD'


pgsql-general by date:

Previous
From: Tang Tim Hei
Date:
Subject: A strange problem
Next
From: Douglas McNaught
Date:
Subject: Re: A strange problem