Hi All,This is normally easy but I have a complex query and am new enough that I can't figure out how to add the right join or subquery to my code to make it work.It finds all the New_CustomerNumber's that have multiple TicketNumber's and is working fine, trouble is eliminating all of the distinct records in between.I've tried all the standard queries and can make them work alone but having trouble adding to this query... please helpSelect IncidentExtensionBase.New_CustomerNumber, IncidentBase.TicketNumber, SystemUserBase.FullName As Owner,SystemUserBase1.FullName As [Created By], IncidentBase.CreatedOn, SystemUserBase1.Title, New_CaseProductsExtensionBase.New_name,SubjectBase.Title, IncidentBase.Description, IncidentBase.SubjectId,IncidentBase.StatusCodeFrom IncidentBase Inner Join IncidentExtensionBase On IncidentBase.IncidentId = IncidentExtensionBase.IncidentId Inner Join SystemUserBase SystemUserBase1 On SystemUserBase1.SystemUserId = IncidentBase.CreatedBy Inner Join SystemUserBase On IncidentBase.OwningUser = SystemUserBase.SystemUserIdInner Join New_CaseProductsExtensionBase On IncidentExtensionBase.New_CaseProductsId = New_CaseProductsExtensionBase.New_CaseProductsId Inner Join SubjectBase On SubjectBase.SubjectId = IncidentBase.SubjectIdWhere IncidentBase.CreatedOn Between '2009/03/09 00:00:00 AM' And '2009/03/19 00:00:00 AM' And (SubjectBase.Title = 'Customer Retention' Or SubjectBase.Title = 'Agent Advantage' Or SubjectBase.Title = 'Cancellations'Or SubjectBase.Title = 'Collections' Or SubjectBase.Title = 'Refunds' Or SubjectBase.Title = 'Broker Sites')ORDER BY IncidentExtensionBase.New_CustomerNumber, IncidentBase.CreatedOn
xclr8tr