Got this query:
SELECT TOP 100
i.item_id ,
i.item_description,
part.part_number
FROM
i
LEFT JOIN
part ON part.item_id = i.item_id
An item usually have multiple part number. It is possible to modify my query to get a grouped result?
without to add any subselects. Group by is not working. I tried to add FOR XML PATH('')
but it transform all columns in xml, not only part number