Re: Combining verity results with database query

2006-01-10 Thread Pete Ruckelshaus
Why not just use a UNION in a QoQ? Pete ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229095 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:

Re: Combining verity results with database query

2006-01-10 Thread Jim Wright
As a follow up to this post, in case anybody has the same problem I did, I had to put the word key in brackets...something like... WHERE dbResults.primaryID = verityResults.[key] This was in MX7 running on a W2K Server box. -jim >And did you try it without table aliases and with the join in th

Re: Combining verity results with database query

2005-05-03 Thread George Abraham
My God, that actually works!! Swwwet! But what the hell does that mean is happening with the query translation in the cfquery? Ah well, I'll use this now. Thanks Pascal. George On 5/3/05, Pascal Peters <[EMAIL PROTECTED]> wrote: > And did you try it without table aliases and with th

Re: Combining verity results with database query

2005-05-03 Thread George Abraham
Well, My workaround for the time being is to use the very excellent queryMerge UDF from cflib.org. Leads to some overhead, but what the hey! George On 5/3/05, George Abraham <[EMAIL PROTECTED]> wrote: > Yep, tried that too. Another thing I just noticed is that it does not > like the dot notation

RE: Combining verity results with database query

2005-05-03 Thread Pascal Peters
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 do

Re: Combining verity results with database query

2005-05-03 Thread George Abraham
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: Query Manipulation Error Code = 0 Invalid SQL SQL = "SELECT dbr.* FROM dbResults dbr INNER JOIN verityResults vr ON vr.key=dbr.PrimaryID" Data Sour

RE: Combining verity results with database query

2005-05-03 Thread Pascal Peters
Did you try SELECT dbr.PrimaryID AS PrimaryID, vr.Score AS Score ... Pascal > -Original Message- > From: George Abraham [mailto:[EMAIL PROTECTED] > Sent: 03 May 2005 16:34 > To: CF-Talk > Subject: Re: Combining verity results with database query > > I toyed arou

Re: Combining verity results with database query

2005-05-03 Thread George Abraham
I toyed around with this code for some time. It is almost as if it does not see that second table (or resultset) which is being joined. For example, if this is the code: SELECT PrimaryID, Score FROM dbResults dbr INNER JOIN verityResults vr ON vr.key = dbr.PrimaryID ORDER BY vr.Score then i

Re: Combining verity results with database query

2005-05-03 Thread George Abraham
It's that last combination that is not working for me. I try to refer to the results from the verity resultset joined on the results from the database (based on a PrimaryID) and I get an error that the SQL is bad. Has anybody ever done this? Here is the SQL code: SELECT dbResults.*, vr.Score FROM

RE: Combining verity results with database query

2005-05-02 Thread Gaulin, Mark
-Original Message- From: George Abraham [mailto:[EMAIL PROTECTED] Sent: Monday, May 02, 2005 2:01 PM To: CF-Talk Subject: Re: Combining verity results with database query Anybody? On 5/2/05, George Abraham <[EMAIL PROTECTED]> wrote: > Hi all, > I have a verity search result (say V

Re: Combining verity results with database query

2005-05-02 Thread George Abraham
Anybody? On 5/2/05, George Abraham <[EMAIL PROTECTED]> wrote: > Hi all, > I have a verity search result (say VerityResults) that has the key as > the primary id of a database table. I know that I can use this primary > id as a parameter for retreiving results from the database like so: > > > SEL

Combining verity results with database query

2005-05-02 Thread George Abraham
Hi all, I have a verity search result (say VerityResults) that has the key as the primary id of a database table. I know that I can use this primary id as a parameter for retreiving results from the database like so: SELECT * FROM thisTable WHERE PrimaryID IN (#ValueList(VerityResults.Key),",")#)