Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

No rows qualified in Select clause

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: No rows qualified in Select clause
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: 2150
Location: At my coffee table

PostPosted: Thu Sep 25, 2008 10:01 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Sep 25, 2008 10:14 pm    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Fri Sep 26, 2008 11:19 am    Post subject:
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: 1013
Location: India

PostPosted: Fri Sep 26, 2008 6:08 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm
No new posts Can we use OPTIMIZE FOR 1 ROWS for fe... cvijay784 DB2 1 Fri Aug 05, 2016 11:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us