pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zuoxin.Wang@kp.org
To: pgsql-admin@postgresql.org
Subject: Missing value from PostgreSQL query?
Date: Tue, 19 Apr 2005 13:59:57 -0700
Message-ID: <OFF13F02E8.13305958-ON88256FE8.00729DC1@KP.ORG> (raw)

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

Message-ID: <OFF13F02E8.13305958-ON88256FE8.00729DC1@KP.ORG>
Permalink:  ../OFF13F02E8.13305958-ON88256FE8.00729DC1@KP.ORG/
Also on:    postgresql.org/message-id/OFF13F02E8.13305958-ON88256FE8.00729DC1@KP.ORG

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Zuoxin.Wang@kp.org
  Subject: Re: Missing value from PostgreSQL query?
  In-Reply-To: <OFF13F02E8.13305958-ON88256FE8.00729DC1@KP.ORG>
  References: <OFF13F02E8.13305958-ON88256FE8.00729DC1@KP.ORG>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox