Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL CONCATINATION

$
0
0

I have a stored procedure that gives me results like this.

SELECT TYPE, COUNT(TYPE) FROM INVENTORY JOIN INVOICEDETAILS ON INVENTORY.ITEM = INVOICEDETAILS.ITEM

WHERE INVOICE = 123

AND IT RETURNS

BOOTS   1

COATS   3

HATS     5

I WOULD REALLY LIKE TO SOMEHOW RETURN

'BOOTS 1, COATS 3, HATS 5'

IS THERE ANY WAY TO DO THAT


Debra has a question


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>