Re: a LEFT JOIN problem

Поиск
Список
Период
Сортировка
От Thomas
Тема Re: a LEFT JOIN problem
Дата
Msg-id 55da14450810301601g7a836120pd164e0d019d06c0f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: a LEFT JOIN problem  (Thomas <iamkenzo@gmail.com>)
Ответы Re: a LEFT JOIN problem  (Thomas <iamkenzo@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql screen size
Следующее
От: Thomas
Дата:
Сообщение: Re: a LEFT JOIN problem