You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
('1.3.6', '2025-12-03', 'drop use of ssd_cutoff, correction in cohort verification', 1, 'admin', 'drop @ssd_cutoff, reuse @ssd_window_start as core timeframe anchor');
195
+
('1.3.7', '2025-12-03', 'date fix on ssd_person', 1, 'admin', 'apply @ssd_window_start as core ssd_person timeframe anchor');
188
196
189
197
190
198
-- HISTORIC versioning log data
@@ -214,7 +222,8 @@ VALUES
214
222
('1.3.2', '2025-11-10', 'Block out string_agg on ssd_assessment_factors', 0, 'admin', 'fix needed to prevent legacy sql failing on string_agg in modern selection block'),
215
223
('1.3.3', '2025-11-13', 's-colon pre CTE bug fix', 0, 'admin', 'non-recognised s-colon pre CTEs + introduced commented hard filter on child ids for LA use'),
216
224
('1.3.4', '2025-11-20', 'sdq scores history, score date and timeframe fix', 0, 'admin', 'patch missing sdq scores history, incorrect hard-coded sdq date field'),
217
-
('1.3.5', '2025-11-21', 'new pre-computed window_start filter added', 0, 'admin', 'Initially applied to sdq scores as timeframe filter. Will be applied throughout');
225
+
('1.3.5', '2025-11-21', 'new pre-computed window_start filter added', 0, 'admin', 'Initially applied to sdq scores as timeframe filter. Will be applied throughout'),
226
+
('1.3.6', '2025-12-03', 'drop use of ssd_cutoff, correction in cohort verification', 1, 'admin', 'drop @ssd_cutoff, reuse @ssd_window_start as core timeframe anchor');
218
227
219
228
220
229
-- META-ELEMENT: {"type": "test"}
@@ -391,47 +400,65 @@ WHERE
391
400
-- AND YEAR(p.BIRTH_DTTM) != 1900 -- Remove admin records hard-filter -- #DtoI-1814
-- AND START_DTTM > '2009-12-04 00:54:49.947' -- #DtoI-1830 care leavers who were aged 22-25 and may not have had Allocated Case Worker relationship for years+
429
456
AND DIM_WORKER_ID <>'-1'
430
-
AND (fi.END_DTTMISNULLORfi.END_DTTM>GETDATE()))
457
+
458
+
AND (fi.END_DTTMISNULLORfi.END_DTTM> @ssd_window_start))
431
459
)
432
460
)
433
-
)
434
-
;
461
+
);
435
462
436
463
437
464
-- -- META-ELEMENT: {"type": "create_idx"}
@@ -501,9 +528,6 @@ SET @TableName = N'ssd_cohort';
0 commit comments