I have a Companies DB, that i use for CRM (Customer Relationship
Management) Pourposes, i also use an Accountant/Finantial DB, where i
create the receipts and invoices. The thing is i have in my CRM DB the
following table structure (only will say the structure elements
required for this case):
Companies_Table:
ID : Autonumber
Name: text
Email: hyperlink
Observations: Memo
Clients_LinkedTable: (External Data From Finantial DB)
ClientID: Number
ClientName:Text
ClientEmail: text
ClientObservations: Memo
Objective: Compare the 2 tables in the different databases, and make a
multiple field unmatched query, retrieving the full row, in the cases
there is at least one field that doesn't match.
Suggestion:
SELECT Clients_LinkedTable.*
FROM Clients_LinkedTable LEFT JOIN Companies_Table ON
(Clientes_LinkedTable.ClientID=Companies_Table.ID) AND
(Clientes_LinkedTable.ClientName=Companies_Table.Name) AND
(Clientes_LinkedTable.ClientEmail=HyperlinkPart(Companies_Table.Email,2))
AND
(Clientes_LinkedTable.ClientObservations=Companies_Table.Observations)
WHERE Empresas_Table.codigoEmpresa IS NULL;
This would work, the problem is the memo field that can't be used in
Joins, and i need it also to be compared.
John Vinson escreveu: