J
Jeff
Hello,
I have two tables, both containing the same field name, e.g. table 1
has Field1, Field2, Field3 and and table 2 has Field1 and Field3. I
would like to do a query that returns all the records from table 1,
substituting table 2's Field3 for table 1's Field3 when Field1 is the
same. The records of table 2 are a subset of table 1.
Currently, I can list all the records as below and have to
programmatically substitute tblTwo.Field3 for tblOne.Field3 when
tblTwo.Field3 has a value in it.
SELECT tblOne.Field1, tblOne.Field2, tblOne.Field3, tblTwo.Field3
FROM tblOne LEFT JOIN tblTwo ON tblOne.Field1=tblTwo.Field1;
Thanks,
Jeff
I have two tables, both containing the same field name, e.g. table 1
has Field1, Field2, Field3 and and table 2 has Field1 and Field3. I
would like to do a query that returns all the records from table 1,
substituting table 2's Field3 for table 1's Field3 when Field1 is the
same. The records of table 2 are a subset of table 1.
Currently, I can list all the records as below and have to
programmatically substitute tblTwo.Field3 for tblOne.Field3 when
tblTwo.Field3 has a value in it.
SELECT tblOne.Field1, tblOne.Field2, tblOne.Field3, tblTwo.Field3
FROM tblOne LEFT JOIN tblTwo ON tblOne.Field1=tblTwo.Field1;
Thanks,
Jeff