Viewing 7 posts - 1 through 7 (of 7 total)
That worked well for children, but grandchildren are left as null.
Is there an elegant way to get the info from the parents parent when the parent is null also? For...
August 10, 2012 at 3:24 pm
insert #MyResult
select 'TC30001','','1','2','2','3','' UNION ALL
select 'TC30001B','TC30001','1','2','','',''
select * from #mytable where lotid = 'TC30001' or parent = 'TC30001'
select * from #MyResult where lotid = 'TC30001' or parent =...
August 9, 2012 at 9:03 pm
Order of how a lot can travel through the tools?
Left to right: VBS ... TCO
Maybe I don't understand the question.
Tim
August 9, 2012 at 10:09 am
Also,
I was using Firefox 14.01 while trying to post a code block...
Using IE 8 seems to work just fine.
Select * from test
August 8, 2012 at 2:39 pm
Sean,
First, I would like to thank you for taking the time to answer my post.
I have attached expected output in an excel spreadsheet. In the expected tab, I have the...
August 8, 2012 at 2:37 pm
Pretty sure that the Pivot expects to do the aggregate function on the data regardless of what it is.
PIVOT ( sum(VariableValue) FOR VariableName IN ( ' + @COLS + ')...
December 14, 2011 at 9:10 am
So I figured it out, thanks to your example. I altered the original table slightly.
CREATE TABLE [dbo].[Normalized](
[TimeStamp] [datetime] NOT NULL,
[LotID] [nvarchar](18) NOT NULL,
[VariableName] [nvarchar](12) NULL,
[VariableValue] [nvarchar](25) NULL,
CONSTRAINT [PK_Normalized] PRIMARY...
December 13, 2011 at 11:46 am
Viewing 7 posts - 1 through 7 (of 7 total)