×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

WHERE a = bcd

WHERE a = bcd

WHERE a = bcd

(OP)
I don't have time to search anymore. I can not find the proper keyword.

I need help with a JOIN or a WHERE expression.

TABLE1 contains CASE_NUMBER
TABLE2 contains DEPT,YEAR,NUMBER

CASE_NUMBER is DEPTyearNUMBER

How do I format a JOIN or WHERE statement to use this info?

RE: WHERE a = bcd





Hi,

CODE

select TABLE1.*, TABLE2.*
From TABLE1, TABLE2
Where CASE_NUMBER = 'DEPT||YEAR||NUMBER'
or whatever concatenation operator your version of SQL recognizes.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: WHERE a = bcd

(OP)
Ah.. the pipe dream perfect. I will try it out. THANK YOU!!!

RE: WHERE a = bcd

(OP)
I'm using DB2 and did not have enough luck with this as I'd hoped. It looks like the fields in TABLE2 are just not meant to be joined like this. I have found a work around that gets me where I need to go.

Thanks for your help, maybe I'll get to use this in the future.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close