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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Unload and Load ISPF Table TSO/ISPF 4
Search our Forums:


Back to Top