Re: a LEFT JOIN problem - Mailing list pgsql-general

From Thomas
Subject Re: a LEFT JOIN problem
Date
Msg-id 55da14450810301601g7a836120pd164e0d019d06c0f@mail.gmail.com
Whole thread Raw
In response to Re: a LEFT JOIN problem  (Thomas <iamkenzo@gmail.com>)
Responses Re: a LEFT JOIN problem  (Thomas <iamkenzo@gmail.com>)
List pgsql-general
Ok I get the problem. It is the LIMIT 1 which was misleading me.

If I remove this limit, I get many returned results, some where orders
were paid, some where orders were not paid, therefore the LIMIT1 picks
the first one, and by chance it lands on an unpaid order.

Am I trying to achieve something which is not possible to do? Do I
compulsory need to make 2 queries? One for the order only and one for
the product only?

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql screen size
Next
From: Thomas
Date:
Subject: Re: a LEFT JOIN problem