You could use the GROUP BY and count() function. See http://www.petefreitag.com/item/169.cfm
HTH, Aaron On 11/16/06, Mark Leder <[EMAIL PROTECTED]> wrote: > 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:260697 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

