Viewing 8 posts - 1 through 8 (of 8 total)
The staging area would be used for the data warehouse and other processes as needed, at this time most of the ETL is handled in the SSIS packages pulling from...
June 15, 2017 at 2:34 pm
Sorry for the confusion. Here is additional sample data;
Create Table #Goals (
PersonId INT
, GoalDate Datetime
, GoalStatus INT
)
INSERT INTO #Goals (PersonId, GoalDate, GoalStatus) VALUES ('125600','1/10/2013','1')
INSERT INTO #Goals (PersonId, GoalDate, GoalStatus)...
November 26, 2013 at 7:36 pm
Here is some additional sample data
Create Table #Goals (
PersonId INT
, GoalDate Datetime
, GoalStatus INT
)
INSERT INTO #Goals (PersonId, GoalDate, GoalStatus) VALUES ('125600','1/10/2013','1')
INSERT INTO #Goals (PersonId, GoalDate, GoalStatus) VALUES ('125600','1/12/2013','0')
INSERT INTO #Goals...
November 26, 2013 at 7:25 pm
No, if the next record is GoalStatus=0 the consecutiveCount goes to 0. Then the next record where GoalStatus=1 the consecutivecount goes to 1.
November 26, 2013 at 6:53 pm
Sorry about that. Here ya go;
GoalStatus; 1= Success, 0=UnSuccessfully
Create Table #Goals (
PersonId INT
, GoalDate Datetime
, GoalStatus INT
)
INSERT INTO #Goals (PersonId, GoalDate, GoalStatus) VALUES ('125600','1/10/2013','1')
INSERT INTO #Goals (PersonId, GoalDate,...
November 26, 2013 at 2:58 pm
Viewing 8 posts - 1 through 8 (of 8 total)