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


SELECT columns FROM tbl_020publicUsers u
WHERE u.userID NOT IN (SELECT e.userID FROM tbl_020eventDetails e)


-Justin



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

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