I need the a report of all masterid's but it may only be one on a row.. I know that's a simple thing to do but I can't figure out the syntax correctly.
I attached the data how its stored in SQL server and the output how I want it to be.
Data:
Required Output:
CREATE TABLE [dbo].[Services]
([ServiceID] [int] IDENTITY(1,1) NOT NULL,
[MasterID] [nvarchar](10) NOT NULL,
[Type] [nvarchar](50) NOT NULL,
[Status] [nvarchar](50) NOT NULL)
Insert Into Services (MasterID, Type , Status) values (123, 'Basic Phone', 'Open')
Insert Into Services (MasterID, Type , Status) values (123, 'BlackBerry', 'Open')
Insert Into Services (MasterID, Type , Status) values (123, 'Pixi', 'Closed')
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…