Viewing 10 posts - 1 through 10 (of 10 total)
Ok thank you for your assistance!
November 10, 2023 at 7:14 pm
The idea is the same, I cannot post the actual data I am working with so I have been using GPT to generate a sample set of data. From there,...
November 10, 2023 at 7:05 pm
You're correct, the PK should actually be a composite key between the BlockStart, DispositionId, ADUserGuid, and WorkflowId. If you feel you do not have adequate data or information related to...
November 10, 2023 at 6:39 pm
-- Create the SampleData table
CREATE TABLE SampleData (
WorkflowId INT PRIMARY KEY,
ADUserGuid NVARCHAR(50),
DispositionId INT,
StartDate DATETIME,
EndDate DATETIME
);
GO
-- Insert sample data into the SampleData table
INSERT INTO SampleData (WorkflowId, ADUserGuid, DispositionId, StartDate, EndDate)
VALUES
(1, 'Tech1',...
November 10, 2023 at 5:02 pm
I'm sorry, but what is the value add to including a script that generates sample data beyond what I have provided thus far?
November 10, 2023 at 3:38 pm
If it was included then yes. Sorry, this is a different data set I put together. But the idea, process, and everything about the data is very similar.
November 9, 2023 at 7:57 pm
It would look something like this below:
TechnicianID StartTime EndTime BlockStart BlockEnd TotalDurationSeconds ProductiveSeconds
1 2023-10-01 05:00:00 2023-10-01 05:10:00 2023-10-01 05:00:00 2023-10-01 05:15:00 600 600
1 2023-10-01 05:10:00 2023-10-01 05:25:00 2023-10-01 05:00:00 2023-10-01...
November 9, 2023 at 6:50 pm
My apologies,
CREATE TABLE SampleData(
WorkflowId INT,
ADUserGuid NVARCHAR(50),
DispositionId INT,
StartDate DATETIME,
EndDate DATETIME
);
INSERT INTO SampleData (WorkflowId, ADUserGuid, DispositionId, StartDate, EndDate) VALUES
(1, 'User1', 101, '2023-01-01 01:23:45', '2023-01-01 02:34:56'),
(1, 'User1', 101, '2023-01-01 03:21:30', '2023-01-01 04:41:20'),
(1, 'User1',...
November 9, 2023 at 6:18 pm
TechnicianID StartTime EndTime BlockStart BlockEnd TotalDurationSeconds ProductiveSeconds
1 2023-10-01 05:00:00 2023-10-01 05:10:00 2023-10-01 05:00:00 2023-10-01 05:15:00 600 600
1 2023-10-01 05:10:00 2023-10-01 05:25:00 2023-10-01 05:00:00 2023-10-01 05:15:00 900 300
1 2023-10-01 05:15:00 2023-10-01...
November 9, 2023 at 3:21 pm
Thank you, but the main issue is less with generating quarter hour blocks, and instead creating a field called "ProductiveSeconds" that calculates how many seconds in any given quarter hour...
November 9, 2023 at 3:14 pm
Viewing 10 posts - 1 through 10 (of 10 total)