|
i have a table Companiesdata CREATE TABLE [dbo].[Companiesdata] ( [Company Name] nvarchar(255), [Industry] varchar(40), [ParentId] int NULL, ) the records are i have other table create table dbo.companiesss ( autoid int identity(1,1), companyname varchar(max), Industry varchar(max) ) i wrote a procedure as below:
The output is as below: pr_getlistofcompaniesss 1,2,4 the records are displayed as instead my output should be as below: pr_getlistofcompaniesss 1,2,4 i.e if i have the same company(Here abc technologies) with different industries name, then the industry field should be seperated with comma displaying the record on same row i.e ( advertising,media)
(comments are locked)
|
|
I hope this helps is it possible to do it in any other way ????? like with the help of stored procedures ?
Aug 08 '12 at 08:17 AM
tsaliki
You can encapsulate it in a procedure. Just change the code according to your base tables/columns etc
Aug 08 '12 at 08:39 AM
Usman Butt
thank you usman ... will check it out now .
Aug 08 '12 at 09:07 AM
tsaliki
(comments are locked)
|

