how to select value when have multiple value in single column
i want select value and single column have values like: [A,B,C,D]
select * from dbo.Tbl_Products inner join dbo.tbl_size on tbl_size.sizename=Tbl_Products.sizename where ProductName='xyz'
for example in this product name ProductName='xyz'
size have a,b,c,d,
then it show one bye one
and it bind in dropdown list please any body help


Vinay SinghRank #604 · 4K reputationPosted Jun 17, 2016, 1:21 AM EDT
declare @str varchar(1000) select @str= coalesce(@str + ', ', '') + dob.Tbl_Products.ItemCount from dbo.Tbl_Products inner join dbo.tbl_size on tbl_size.sizename=Tbl_Products.sizename where ProductName='xyz print @strhave a look of the link for detail understanding
http://www.c-sharpcorner.com/blogs/how-to-select-column-values-as-comma-separated-string-in-sql-server1 http://www.codeproject.com/Tips/635166/SQL-Column-Values-as-Comma-Separated-String http://stackoverflow.com/questions/21760969/multiple-rows-to-one-comma-separated-value