dbTalk Databases Forums  

Strange situation - DB2

comp.databases.informix comp.databases.informix


Discuss Strange situation - DB2 in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ravi Shankar Namasivayam
 
Posts: n/a

Default Strange situation - DB2 - 07-22-2010 , 08:54 AM






I was able to see certain records when I did SELECT * FROM T1; When I
did SELECT * FROM T1 WHERE EMP_ID = '1234'; 1234 being taken from
output of the first query, returned no rows.

I did REORG on T1 and SELECT * FROM T1; did not show 1234 employee id
in the entire output.

Why 1234 showed up at first place?

Reply With Quote
  #2  
Old   
Everett Mills
 
Posts: n/a

Default RE: Strange situation - DB2 - 07-22-2010 , 09:10 AM






Quote:
-----Original Message-----
From: informix-list-bounces (AT) iiug (DOT) org [mailto:informix-list-
bounces (AT) iiug (DOT) org] On Behalf Of Ravi Shankar Namasivayam
Sent: Thursday, July 22, 2010 8:55 AM
To: informix-list (AT) iiug (DOT) org
Subject: Strange situation - DB2

I was able to see certain records when I did SELECT * FROM T1; When I
did SELECT * FROM T1 WHERE EMP_ID = '1234'; 1234 being taken from
output of the first query, returned no rows.

I did REORG on T1 and SELECT * FROM T1; did not show 1234 employee id
in the entire output.

Why 1234 showed up at first place?
If, as the subject line suggests, you are using DB2, you'll likely get a better answer in a DB2 forum. Best guess is that either EMP_ID isn't a numeric field or that the 1234 you saw in the query returning every row has spaces or something in it so that '1234' <> '1234 '.

--EEM
Quote:
_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
  #3  
Old   
Brucemarchu@aol.com
 
Posts: n/a

Default Re: Strange situation - DB2 - 07-22-2010 , 06:32 PM



Everett,

Try checking your indexes to see if any are corrupted.


Bruce
= = = =


Quote:
-----Original Message-----
From: informix-list-bounces (AT) iiug (DOT) org [mailto:informix-list-
bounces (AT) iiug (DOT) org] On Behalf Of Ravi Shankar Namasivayam
Sent: Thursday, July 22, 2010 8:55 AM
To: informix-list (AT) iiug (DOT) org
Subject: Strange situation - DB2

I was able to see certain records when I did SELECT * FROM T1; When I
did SELECT * FROM T1 WHERE EMP_ID = '1234'; 1234 being taken from
output of the first query, returned no rows.

I did REORG on T1 and SELECT * FROM T1; did not show 1234 employee id
in the entire output.

Why 1234 showed up at first place?
If, as the subject line suggests, you are using DB2, you'll likely get a
better answer in a DB2 forum. Best guess is that either EMP_ID isn't a
numeric field or that the 1234 you saw in the query returning every row has
spaces or something in it so that '1234' <> '1234 '.

--EEM
> _______________________________________________

Reply With Quote
  #4  
Old   
Everett Mills
 
Posts: n/a

Default RE: Strange situation - DB2 - 07-23-2010 , 08:07 AM



From: Brucemarchu (AT) aol (DOT) com [mailto:Brucemarchu (AT) aol (DOT) com]
Sent: Thursday, July 22, 2010 6:32 PM
To: Everett Mills; informix-list (AT) iiug (DOT) org
Cc: bmarchu (AT) aol (DOT) com
Subject: Re: Strange situation - DB2

Everett,
*
Try checking your indexes to see if any are corrupted.*
*
*
Bruce
= = = =

I wasn't the one having the problem, Ravi was. Since he hasn't responded back, I'll assume he took my first suggestion and asked his question in a DB2 forum.

--EEM
*

Quote:
-----Original Message-----
From: informix-list-bounces (AT) iiug (DOT) org [mailto:informix-list-
bounces (AT) iiug (DOT) org] On Behalf Of Ravi Shankar Namasivayam
Sent: Thursday, July 22, 2010 8:55 AM
To: informix-list (AT) iiug (DOT) org
Subject: Strange situation - DB2

I was able to see certain records when I did SELECT * FROM T1; When I
did SELECT * FROM T1 WHERE EMP_ID = '1234'; 1234 being taken from
output of the first query, returned no rows.

I did REORG on T1 and SELECT * FROM T1; did not show 1234 employee id
in the entire output.

Why 1234 showed up at first place?
If, as the subject line suggests, you are using DB2, you'll likely get a better answer in a DB2 forum.* Best guess is that either EMP_ID isn't a numeric field or that the 1234 you saw in the query returning every row has spaces or something in it so that '1234' <> '1234 '.

* * * * --EEM
> _______________________________________________

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.