Try this code.....

<cfquery name="GetPromoters" datasource="user020">
 SELECT u.userID,u.firstName,u.lastName,u.emailAddress,u.password
 FROM tbl_020publicUsers u
 WHERE (SELECT count(*)
    FROM tbl_020eventDetails e
    WHERE e.userID = u.userID) = 0
</cfquery>

Charlie Hanlon
Web Apps Developer
Food Service Enablers, Inc.
www.fsenablers.com

The People. The Platform. The Products.
Make the Difference


----- Original Message ----- 
From: "Saturday (Stuart Kidd)" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Wednesday, November 02, 2005 4:50 PM
Subject: Find no records


> 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
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222978
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