Maybe this will work. I may not be understanding what you need. <cfquery name="GetPromoters" datasource="user020"> SELECT u.userID, u.firstName, u.lastName, u.emailAddress, u.password, e.userID FROM tbl_020publicUsers u WHERE u.userID NOT IN (SELECT UserID FROM tbl_020eventDetails e) </cfquery>
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:222979 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

