IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

No rows qualified in Select clause


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satyender

New User


Joined: 05 Jan 2008
Posts: 50
Location: Olympia, WA, USA

PostPosted: Thu Sep 25, 2008 9:53 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Sep 25, 2008 10:01 pm
Reply with quote

Your clause or value is not correct, post it....
Back to top
View user's profile Send private message
satyender

New User


Joined: 05 Jan 2008
Posts: 50
Location: Olympia, WA, USA

PostPosted: Thu Sep 25, 2008 10:08 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Sep 25, 2008 10:14 pm
Reply with quote

I would suggest that you view it in hex to see what the difference is......
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Fri Sep 26, 2008 11:19 am
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Fri Sep 26, 2008 6:08 pm
Reply with quote

Hi Satyender,

Try like this, it might click

select * from table 1 where VVIN = '%JTDAT123XY0012457%'
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts SELECT from data change table DB2 5
Search our Forums:

Back to Top