When I do a query checking for equality between two fields in two different tables, it runs fine ... but when I change the query to return records that are not equal the server runs forever and the page hangs and never displays. The datasource is an Access database using ODBC. ColdFusion Server is 4.5 . What am I doing wrong?
Here's the code:
<CFQUERY NAME="MatchQuery1" DATASOURCE="CellAnalSystem">
Select * From LKE_POCs, Main
Where (LKE_POCs.Cell_Number <> Main.Cell_Number) And Main.BillDate = '200601'
</CFQUERY>
<CFOUTPUT query="MatchQuery1">
#Cell_Number# #Family_Name# <BR>
</cfoutput>
Here's the code:
<CFQUERY NAME="MatchQuery1" DATASOURCE="CellAnalSystem">
Select * From LKE_POCs, Main
Where (LKE_POCs.Cell_Number <> Main.Cell_Number) And Main.BillDate = '200601'
</CFQUERY>
<CFOUTPUT query="MatchQuery1">
#Cell_Number# #Family_Name# <BR>
</cfoutput>