Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

left join

$
0
0

Being new to coldfusin i have some question about this query .

why do we need the first select (joinquery) ?

is this a left join , just by looking at it it looks weird?

Is there other ways to do letf join in coldfusion?

 

<cfquery name="joinQuery" dbtype="query">
SELECT *
FROM GetCardlyticsRedemptionStats
WHERE GetCardlyticsRedemptionStats.SourceCustomerIDINT = -1</cfquery><cfset QueryAddRow(joinQuery) /><cfquery name="CombineBothTables0" dbtype="query" >SELECT *FROM  GetCardlyticsID, GetCardlyticsRedemptionStatsWHERE GetCardlyticsRedemptionStats.SourceCustomerIDINT = GetCardlyticsID.cardlyticscustomerid UNIONSELECT GetCardlyticsID.*, joinQuery.*FROM GetCardlyticsID, joinQueryWHERE GetCardlyticsID.cardlyticscustomerid NOTIN (#ValueList(GetCardlyticsRedemptionStats.SourceCustomerIDINT)#)</cfquery>

Viewing all articles
Browse latest Browse all 6243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>