Try this: SELECT company, companyID, companyCity, companyState, companyZip, FROM dbTable_Clients_Companies_List WHERE companyID Not in (Select companyID From dbtable_Clients_Projects_List) ORDER BY company ASC
this sould do... Greetings / GrĂ¼sse Gert Franz Customer Care Railo Technologies GmbH [EMAIL PROTECTED] www.railo.ch Join our Mailing List / Treten Sie unserer Mailingliste bei: deutsch: http://de.groups.yahoo.com/group/railo/ english: http://groups.yahoo.com/group/railo_talk/ Mark Leder schrieb: > I'm stumped on this. How to I retrieve records that do not match (I'm > wanting to display orphaned Companies that are not associated with > Projects). Tried <> and using NOT and NOT IN() without success. > > SELECT C.company, C.companyID, C.companyCity, C.companyState, C.companyZip, > P.companyID > > FROM dbTable_Clients_Companies_List C, dbtable_Clients_Projects_List P > > WHERE C.companyID <> P.companyID > > ORDER BY C.company ASC > > Thanks, > Mark > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260696 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

