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

searching row from db2 table


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

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Fri Aug 19, 2005 7:08 pm
Reply with quote

Dear Friends

Quote:
There is one db2 table.I have to perofrm search operation on various conditon on same table.
How could i do it? can it be possible by declaring ine cursor.


Thanks and regards
Chandra
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Fri Aug 19, 2005 7:14 pm
Reply with quote

I want to make you more clear about the structure


Quote:
It is like this:-------

Suppose the TAB is a DB2 table.

If Cond-1 is true and val-1='c' and
there is no row having condintiion tab.colA='abc' and tab.colb='asd'
then display message-1
And no row found having condition tab.colA='abc' and tab.colc='jkl'
then display msg-2


Thanks And Reagards
Chandra
Back to top
View user's profile Send private message
bonniem

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Sat Aug 20, 2005 11:08 am
Reply with quote

I must say that your question is not very clear. From what I understood you could just use 2 queries for the 2 cases, there is no need of a cursor.
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top