Home > Archive > PostgreSQL Administration > April 2005 > Missing value from PostgreSQL query?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Missing value from PostgreSQL query?
Zuoxin.Wang@kp.org

2005-04-19, 8:24 pm

Hi all,
Does any one know why I have following inconsistant results from
PostgreSQL under Cygwin?

When I switch the select order, or use "select * from patient", some
values are missing from returned results.

What might be wrong?

Thanks in advance.


test=# select first_name, last_name, used, birthday from patient;
first_name | last_name | used | birthday
------------+-----------+------+------------
| 1960-02-01DI | N
| 1960-02-01DI | N
(2 rows)

test=# select first_name, last_name, birthday, used from patient;
first_name | last_name | birthday | used
------------+-----------+------------+------
AAAAAA | TDI | 1960-02-01 | N
AAAAAB | TDI | 1960-02-01 | N
(2 rows)
/* worked fine */

est=# select birthday from patient;
birthday
------------
1960-02-01
1960-02-01
(2 rows)

test=# select used from patient;
used
------
N
N
(2 rows)

test=# select used, birthday from patient;
used | birthday
------+------------
| 1960-02-01
| 1960-02-01
(2 rows)


Jason

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com