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

Query from two DB2 tables


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

New User


Joined: 24 Aug 2005
Posts: 7

PostPosted: Fri Apr 25, 2008 10:27 am
Reply with quote

Hi All,

Can anybody help me in querying two DB2 tables with join.

here is the query.


SELECT
SO31.CTID
,SO31.NFNCD1
,SO31.CAEFA
,SO31.DFNDT
,SO31.GRID
,SO31.AACVAO
,SO34.DSLOI2
,SO34.IDARC
FROM
CORP.TBSO31
,CORP.TBSO34
WHERE
SO31.CTID = '67739425'
AND SO31.NFNCD1 = SO34.NFNCD1
AND SO31.CAEFA = SO34.CAEFA
AND SO31.GRID = SO34.GRID


thanks, Srini
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Apr 25, 2008 10:31 am
Reply with quote

what king of help do You need ...
did You try Your query under spufi ?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Apr 25, 2008 5:52 pm
Reply with quote

Some explanation of your problem would help?


SELECT
SO31.CTID
,SO31.NFNCD1
,SO31.CAEFA
,SO31.DFNDT
,SO31.GRID
,SO31.AACVAO
,SO34.DSLOI2
,SO34.IDARC
FROM
CORP.TBSO31 SO31
,CORP.TBSO34 SO34
WHERE
SO31.CTID = '67739425'
AND SO31.NFNCD1 = SO34.NFNCD1
AND SO31.CAEFA = SO34.CAEFA
AND SO31.GRID = SO34.GRID
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Apr 25, 2008 9:00 pm
Reply with quote

Kinda tough for them to reply when they have been banned. . .

Seemed like a rather severe penalty for not asking the question very well.

d
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 RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Need to fetch data from so many DB2 t... DB2 9
Search our Forums:

Back to Top