SELECT bn.[Service Ticket Number], MAX(bn.[Created Date]), MAX(bn.[Changed Date]), MAX(bn.[Closed Date]), MAX(bn.[Created Week]),
MAX(bn.[Created Year]), MAX(bn.[Linked Transaction Number]), MAX(bn.[Customer Country]), MAX(bn.[Serial Number]),
MAX(bn.[Product Line]), MAX(bn.[Product Name]), MAX(bn.[Product Number]), MAX(bn.[Operating System]), MAX(bn.Reason),
MAX(bn.Description), bn.Status, MAX(bn.[Warranty Category]), MAX(bn.[Changed by (Agent ID/Name)]),MAX(bn.Field39),
MAX(bn.Field40), MAX(t.[Created Time]), MAX(t.[Created by (Agent ID/Name)]), MAX(t.Field5), MAX(t.[Resp Serv Org])
FROM bn LEFT JOIN t ON bn.[Linked Transaction Number] = t.[Interaction Number]
GROUP BY bn.[Service Ticket Number],t.[Interaction Number]
|