Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

How to loop through two queries at the same time?

$
0
0

Hello everyone, I have two queries qryCustomer and qryStore. I have to loop through both at the same time. I tried to do this but that gave me duplicates.

 

<cfloop query="qryCustomer">

    <cfloop query="qryStore">

          Insert Into tblResults

          Values(#Name#,#Id#);

     </cfloop>

</cfloop>

 

If anyone knows how I can loop through both of them at the same time that way i can avoid inserting all ID's for the same Customer please let me know.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 5794

Trending Articles



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