Excluding IDs in queries

2001-04-01 Thread W Luke
Hello. I'm trying to exclude an ID from the WHERE in a query, by looping through a list, but it's causing a lot of headaches. The list contains delimited list of IDS (120,145,987,564 etc) cfquery name="users_adverts" datasource="localads" SELECT ID,email,subject,paid FROM advert_details WHERE

Re: Excluding IDs in queries

2001-04-01 Thread Sean Renet
Use NOT IN WHERE featured = No AND ID NOT IN (#ListofIDs#) - Original Message - From: "W Luke" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Sunday, April 01, 2001 9:48 AM Subject: Excluding IDs in queries Hello. I'm trying to exclude

RE: Excluding IDs in queries

2001-04-01 Thread Patricia Lee
To: CF-Talk |Subject: Excluding IDs in queries | | |Hello. | |I'm trying to exclude an ID from the WHERE in a query, by |looping through a |list, but it's causing a lot of headaches. The list contains |delimited list |of IDS (120,145,987,564 etc) | | cfquery name="users_adverts" datasour

Re: Excluding IDs in queries

2001-04-01 Thread W Luke
Thanks, working now..:/ Will - Original Message - From: ""Sean Renet"" [EMAIL PROTECTED] Newsgroups: dotcom.lists.cftalk Sent: Sunday, April 01, 2001 6:05 PM Subject: Re: Excluding IDs in queries Use NOT IN WHERE featured = No AND I

RE: Excluding IDs in queries

2001-04-01 Thread David Shadovitz
AND ID NOT IN #CLIENT.TROLL# (The RDBMS will translate IN into multiple OR statements and NOT IN into multiple AND statements.) -David On Sunday, April 01, 2001 9:48 AM, W Luke [SMTP:[EMAIL PROTECTED]] wrote: Hello. I'm trying to exclude an ID from the WHERE in a query, by looping through a

RE: Excluding IDs in queries

2001-04-01 Thread Jason
OR /cfloop 1=2) /cfquery -Original Message- From: W Luke [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 9:48 AM To: CF-Talk Subject: Excluding IDs in queries Hello. I'm trying to exclude an ID from the WHERE in a query, by looping through a list, but it's causing a lot of head

Re: Excluding IDs in queries

2001-04-01 Thread CF
314 Oakland Ave. Rock Hill, SC 29730 (803) 327-0137 [111] (p) (803) 328-2868 (f) - Original Message - From: "David Shadovitz" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Sunday, April 01, 2001 1:20 PM Subject: RE: Excluding IDs in queries AND ID