Inner Join Help
From: heboth (henrik_thystrup_at_hotmail.com)
Date: 10/31/04
- Next message: dance2die: "how to use rows returned from Sprocs"
- Previous message: oj: "Re: command object problem about stored"
- Next in thread: Mike John: "Re: Inner Join Help"
- Reply: Mike John: "Re: Inner Join Help"
- Messages sorted by: [ date ] [ thread ]
Date: 31 Oct 2004 10:05:20 -0800
Hello,
Can someone help me with a SQL statement that returns either email
from Table A or email2 from Table B based on the following logic: if
the email is found in Table B then email2 is retuned/used from Table
B otherwise email is retuned/used from table A. I.E
Table A Table B
email="mail@mail.com" email="mail@mail.com"
email2="newmail@mail.com"
Here email2="newmail@mail.com" should be returned from query
Table A Table B
email="mail@mail.com" email="no@mail.com"
email2="newmail@mail.com"
Here email="mail@mail.com" from Tabel A should be returned from query
Thanks in advance
Cheers
Henrik
- Next message: dance2die: "how to use rows returned from Sprocs"
- Previous message: oj: "Re: command object problem about stored"
- Next in thread: Mike John: "Re: Inner Join Help"
- Reply: Mike John: "Re: Inner Join Help"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|