macromedia.coldfusion.database_access
[Top] [All Lists]

Re: Importing and Updating Non-Duplicate Records from 2 Tables

Subject: Re: Importing and Updating Non-Duplicate Records from 2 Tables
From: "Dan Bracuk" <webforumsuser@xxxxxxxxxxxxxx>
Date: Wed, 20 Feb 2008 14:16:54 +0000 (UTC)
Newsgroups: macromedia.coldfusion.database_access

Forget the duplicates for right now.  We'll do something easy first.

 Run your 2nd query first.

 Then, when you run the qryMember query, add this to the where clause.

 and membernumber not in (<cfqueryparam list="yes" 
value="#valuelist(newsmember.membernumber)# cfsqltype="cf_sql_integer">)

 Then, for your inserts, just loop through the qryMember query.  You don't need 
any if/else logic.


<Prev in Thread] Current Thread [Next in Thread>