MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SQl query

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
rajeev5174
Beginner


Joined: 05 Jun 2007
Posts: 25
Topics: 10

PostPosted: Wed Jun 27, 2012 12:34 pm    Post subject: SQl query Reply with quote

Hello

Could someone let me know how best we can get the resultset

We have 3 table T1 T2 & T3 we need to find out those (empno) records which are there in t1 and not there in t2 and then join this with a 3'rd table

t3 on empno & select the statuscd 'T" and 'I'

Table column are as below-( Empno is PK for the below 3 tables)

T1 fields
Code:

empno
typecod
hiredate


T2 flds
Code:

empno
birthdate
pfamt

T3 flds
Code:

empno
statuscd

Thanks,

Raj
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Jun 27, 2012 12:38 pm    Post subject: Reply with quote

rajeev5174,

How many topics are you going to create with the same title "SQL Query" ? Can't you provide descriptive titles? Use meaningful topics (don't use the Forum name for the topic). Use a descriptive Title to explain your problem. Post detailed information on what you're trying to accomplish. Do not make people guess what you mean. This will give you a much better chance of getting a good answer to your question.

And how is this new query any different from the one you posted earlier? except for the PO_NBR to Empno now?

http://www.mvsforums.com/helpboards/viewtopic.php?t=12004


Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group