Hi, Im wondering whats wrong with my code ...
If I use this 1st set of code below .. it gives me the right results ....
<cfquery name="shit" datasource="EncoreCompanyD">
SELECT ArCustomer.Customer, ArCustomer.Name
FROM dbo.ArCustomer
WHERE (ArCustomer.Customer = '0013746')
</cfquery>
****** BUT if I use this below, it gives me bad query results. This is querying 2 tables from different databases. There is only 1 customer 0013746 but with this code below, it returns a bunch of 0013746 customers.
<cfquery name="shit" datasource="EncoreCompanyD">
SELECT ArCustomer.Customer, ArCustomer.Name, p.name
FROM dbo.ArCustomer, DynoOwnerRec.dbo.TuningLinkIssues p
WHERE (ArCustomer.Customer = '0013746')
</cfquery>
What is wrong with the 2nd code ???
thank you
If I use this 1st set of code below .. it gives me the right results ....
<cfquery name="shit" datasource="EncoreCompanyD">
SELECT ArCustomer.Customer, ArCustomer.Name
FROM dbo.ArCustomer
WHERE (ArCustomer.Customer = '0013746')
</cfquery>
****** BUT if I use this below, it gives me bad query results. This is querying 2 tables from different databases. There is only 1 customer 0013746 but with this code below, it returns a bunch of 0013746 customers.
<cfquery name="shit" datasource="EncoreCompanyD">
SELECT ArCustomer.Customer, ArCustomer.Name, p.name
FROM dbo.ArCustomer, DynoOwnerRec.dbo.TuningLinkIssues p
WHERE (ArCustomer.Customer = '0013746')
</cfquery>
What is wrong with the 2nd code ???
thank you