Problem with an Empty Column

Поиск
Список
Период
Сортировка
Искать

Problem with an Empty Column

От:
hidura@gmail.com
Дата:
Good Morning list, I am new in the PostgreSQL list, and i have a problem with a query because i have an empty column in a empty table and i compare this empty column with a column what have values in other table i use an LEFT OUTER JOIN and works well, but when i filled the empty table with data and compare again the query give me the same result than if the table was empty, here is the code of my query:
SELECT supplierbill_tbl.id
FROM supplierbill_tbl
LEFT OUTER JOIN agrouptransacc_tbl
ON supplierbill_tbl.id > agrouptransacc_tbl.splbillid

--
Diego I. Hidalgo D.

Re: Problem with an Empty Column

От:
Scott Marlowe <scott.marlowe@gmail.com>
Дата:
On Tue, Mar 10, 2009 at 11:41 PM,   wrote:
> Good Morning list, I am new in the PostgreSQL list, and i have a problem
> with a query because i have an empty column in a empty table and i compare
> this empty column with a column what have values in other table i use an
> LEFT OUTER JOIN and works well, but when i filled the empty table with data
> and compare again the query give me the same result than if the table was
> empty, here is the code of my query:
> SELECT supplierbill_tbl.id
> FROM supplierbill_tbl
> LEFT OUTER JOIN agrouptransacc_tbl
> ON supplierbill_tbl.id > agrouptransacc_tbl.splbillid

I think we need a more complete example.  Note you can generate rows
in a table with generate_series() pretty easily for testing.

FAQ