• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Inner Join on tables from different datasources (ms-sql + cfml)

Hi Guys,

I need to do an inner join, or achieve the same results, between two tables, each from a different datasource.


ex

tbl_1

id
member_id
info_a

tbl_2

member_id
info_b

Typically, I would do it like this

<CFQUERY NAME="myquery" DATASOURCE="data1" MAXROWS=1 >
SELECT tbl_1.id as id, tbl_1.member_id as member_id, tbl_1.info_a as info_a,
tbl_2.info_b as info_b
FROM tbl_dns
INNER JOIN tbl_2 on tbl_1.member_id = tbl_2.member_id
WHERE (member_id = <CFQUERYparam value="#member_id#">)
</CFQUERY>

But I can't because there are two different data sources in play.

What's the best way to go about this?
 
Back
Top