Questions: 1) Are all the values stored at numbers?2) Are all the values in table A (Contact?) Stored as 00392 or are some 00392 and others 398?If question 1 is Yes, they are all stored as numbers then I'd convert them to numbers and compare. Otherwise you might try this?:Select p.CEO_ID,p.Part_ID,ct.CEO_ID__cfromContact ctleft joinMain5.dbo.Part ponRIGHT('000' + p.CEO_ID, 5) = Convert(varchar(5),ct.CEO_ID__c) collate database_defaultwhere ct.CEO_ID__c = '00392'Cheers,-Ryan