Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 83883

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 83883

Trending Articles