I have a query that returns 1 or more reords fot each item in out catalog along with the cross refference number
results of the query
I would like to get the results as a single records like this
Any assitance is appreciated
RJL
Code:
SELECT
DISTINCT(IC.X_REF_ITEM),
I.ITEM
FROM ITEM I WITH(NOLOCK)
LEFT OUTER JOIN ITEM_CROSS_REFERENCE IC WITH(NOLOCK)
ON IC.ITEM = I.ITEM
WHERE
I.ITEM = '10658'
AND I.COMPANY = '001'
results of the query
Code:
X_REF_ITEM ITEM
---------------------------------------
000000200000010658 10658
051000005243 10658
10051000106589 10658
I would like to get the results as a single records like this
Code:
ITEM X_REF_1 X_REF_2 X_REF_3
------------------------------------------------------------
10658 000000200000010658 051000005243 051000106589
Any assitance is appreciated
RJL