Thanks for your help everyone, definitely got it working now.

Thanks,

Saturday


On 2 Nov 2005, at 22:54, Brian Peddle wrote:

> SELECT
>      u.userID,
>      u.firstName,
>      u.lastName,
>      u.emailAddress,
>      u.password
> FROM
>      tbl_020publicUsers u
> WHERE
>       not exists (select * from tbl_020eventDetails e where u.userID =
> e.userID)
>
>
> May perform a bit better than NOT IN
>
>
> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 02, 2005 4:56 PM
> To: CF-Talk
> Subject: Re: Find no records
>
> SELECT
>      u.userID,
>      u.firstName,
>      u.lastName,
>      u.emailAddress,
>      u.password
> FROM
>      tbl_020publicUsers u
> WHERE
>      u.userID NOT IN (SELECT DISTINCT userID FROM tbl_020eventDetails)
>
>
> On 11/2/05, Saturday (Stuart Kidd) <[EMAIL PROTECTED]> wrote:
>> Hi guys,
>>
>> Since getting help on my last problem which was finding records of
>> users (from user table) which have events in the events table I am
>> now trying to list all the users in the users table which don't have
>> any rows which match in the events table.
>>
>> <cfquery name="GetPromoters" datasource="user020">
>> SELECT
>>        u.userID,
>>        u.firstName,
>>        u.lastName,
>>        u.emailAddress,
>>        u.password,
>>        e.userID
>> FROM
>>        tbl_020publicUsers u INNER JOIN tbl_020eventDetails e
>>        ON u.userID <> e.userID
>> </cfquery>
>>
>> I thought something like the above might work but doesn't seem to.
>>
>> Any help would be great, thanks.
>>
>> Saturday
>>
>>
>>
>>
>>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222985
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to