QUOTE (Andrew K. @ Jul 3 2007, 09:47 AM)

You just need to select the data from each database and use a query of queries to join them.
This seemed to work for me when I tested it.
CODE
<cfquery name="query1" datasource="query1datasource" cachedwithin="#CreateTimeSpan(0,1,0,0)#">
SELECT *
FROM table1
</cfquery>
<cfquery name="query2" datasource="query2datasource">
SELECT *
FROM table2
</cfquery>
<cfquery name="joinqueries" dbtype="query">
SELECT *
FROM query1, query2
</cfquery>
Of course you'll probably want to play around with it a bit so it returns the right data that you want...
That would most definitely work, and there is nothing wrong with that approach. But if the two tables have the same columns then he could have the database do all the work by using a UNION statement. This way ColdFusion only has to make one call to the database and then process that just once. This technique would require ColdFusion to make two calls to he database, process them both and then run one more process to combine the two - not to mention the output processing.
Again, the technique will work fine, but if volume or scalability is a concern, then it will not perform very well.
[edit] if the data doesn't change that often, you might consider caching the query - caching a query for even as little as a minute can improve performance by 90%.