Here's the scenario:
"Table 1" has INFO and SOURCE and DESTINATION address
"Table 2" has address and name (essentially a lookup table)
I need a SQL query that will give me:
INFO SOURCE_NAME DESTINATION_NAME
Essentially, I need to lookup the name for both the SOURCE and DESTINATION address. Here's what I have, and it's not working:
Thanks in advance!
************
RudeJohn
************
"Table 1" has INFO and SOURCE and DESTINATION address
"Table 2" has address and name (essentially a lookup table)
I need a SQL query that will give me:
INFO SOURCE_NAME DESTINATION_NAME
Essentially, I need to lookup the name for both the SOURCE and DESTINATION address. Here's what I have, and it's not working:
Code:
SELECT A1.Info, A2.Name DESTINATION, A2.Name SOURCE
FROM ExportData A1, Addresses A2
WHERE A2.Address = A1.Destination, A2.Address = A1.Source;
Thanks in advance!
************
RudeJohn
************