View previous topic :: View next topic
|
Author |
Message |
satyender
New User
Joined: 05 Jan 2008 Posts: 50 Location: Olympia, WA, USA
|
|
|
|
Hi all,
Here is the situation.
When I am querying a table it is giving all the data.
using:
select * from table1;
but when I am trying to get the specified value using a where clauseit is giving an error
as 'no rows qualified'
If i take runstats would it solve this problem or do i need to do more,
could anyone pls suggest me.
Thanks in advance. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Your clause or value is not correct, post it.... |
|
Back to top |
|
|
satyender
New User
Joined: 05 Jan 2008 Posts: 50 Location: Olympia, WA, USA
|
|
|
|
Thanks for your response.
The value is correct.
I can see the value.
if I give VVIN = 'JTDAT123XY0012457' in file Aid for DB2 and execute it shows the message 'No Rows Qualified', But if you execute without any parameters it shows the entire table contents including the VIN 'JTDAT123XY0012457'. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
I would suggest that you view it in hex to see what the difference is...... |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello Stayender,
Runstats used to update catalogue tables it & db2 uses it to select access paths to data during the bind process.
It's will not effect the runstat table data & answer to your question regarding why u are not getting data while giving where clause. For these pleasepost the full query as well as check hex value for output of select |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi Satyender,
Try like this, it might click
select * from table 1 where VVIN = '%JTDAT123XY0012457%' |
|
Back to top |
|
|
|