Viewing 6 posts - 1 through 6 (of 6 total)
I guess "condensing" is probably not the right term. I guess resolving overlapping dates while accurately summarizing the metrics (value1, value2) is probably a better description.
The problem is I have...
November 14, 2013 at 8:01 pm
ColdCoffee,
Your solution works except for the glitch you mentioned. Thanks for all your help. I came up with the solution I needed. Here's the code.
-- Input
CREATE TABLE #Lookup (
...
April 6, 2010 at 1:14 pm
Lynn,
It doesn't have to be dynamic. I can't really post the exact question due to compliance issues. In my example, My Data table contains only A,B,C and D columns. But...
April 5, 2010 at 9:48 pm
Lynn,
Sorry. I'm a rookie. Below is the complete question and code.
CREATE TABLE Lookup (
Key CHAR (2)
,Col1 CHAR(1)
,Col2 CHAR(1)
,Col3 CHAR(1)
,CONSTRAINT...
April 5, 2010 at 9:33 pm
Sorry about that. yes, I do have primary key on the DATA table.
We can call it Id
CREATE TABLE DATA (
ID INT IDENTITY(1,1)
KEY CHAR(2)
,A INT
,B INT
,C INT
,D INT
)
INSERT INTO DATA VALUES
('00',1,2,3,4),('01',5,6,7,8)
April 5, 2010 at 8:56 pm
Thanks for the prompt reply. The query you posted would work. But, the example I provided is really a short version of what I really need.
In the actual problem, the...
April 5, 2010 at 8:45 pm
Viewing 6 posts - 1 through 6 (of 6 total)