And did you try it without table aliases and with the join in the where
clause:

SELECT dbResults.primaryID AS primaryID, verityResults.score AS score
FROM dbResults, verityResults
WHERE dbResults.primaryID = verityResults.key
ORDER BY verityResults.score DESC

This has definitely worked for me in the past (on CF5)

Pascal


> -----Original Message-----
> From: George Abraham [mailto:[EMAIL PROTECTED]
> Sent: 03 May 2005 16:46
> To: CF-Talk
> Subject: Re: Combining verity results with database query
> 
> Yep, tried that too. Another thing I just noticed is that it does not
> like the dot notation as in dbr.PrimaryID or whatever. It gives this
> error:
> 
> 
> <ERROR>
> Query Manipulation Error Code = 0
> 
> Invalid SQL
> 
> SQL = "SELECT dbr.* FROM dbResults dbr INNER JOIN verityResults vr ON
> vr.key=dbr.PrimaryID"
> 
> Data Source = ""
> 
> The error occurred while processing an element with a general
> identifier of (CFQUERY)
> </ERROR>
> 
> George

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205383
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to