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

Ineed an SQL query to collect data from several tables.


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

New User


Joined: 22 Nov 2007
Posts: 13
Location: Noida

PostPosted: Fri Feb 19, 2010 5:00 pm
Reply with quote

I need to collect data from several tables.Below are the details about the fields in the tables –

RTRN_SHPMT table --> rtrn_shpmt_stst_nbr, return_typ_nbr, vnd_nbr, vnd_rtrn_prof_nbr
VNT_RTRN_PROF table --> vnd_nbr, ra_nbr
VENDOR table --> vnd_duns_nbr, vnd_nbr
ZL_CRC table --> zl_store_nbr, return_typ_nbr
CNTR table --> cntr_nbr, return_typ_nbr

I need the zl_store_nbr and cntr_nbr for ra_nbr=1234, vnd_duns_nbr= 3456, vnd_rtrn_prof_nbr=1234
and rtrn_shpmt_stst_nbr in (0,9Thanks 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: Fri Feb 19, 2010 5:20 pm
Reply with quote

Change the 'I need the' with 'SELECT' and fix the syntax and you will just about have it.....
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 Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts RC query -Time column CA Products 3
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top