Files
jdescopingtool/NEW/src/JdeScoping.Database/Scripts/027_CreateWorkOrderTimeView.sql
T
Joseph Doherty 26ff8d9b4f Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/),
new .NET 10 Blazor solution (NEW/), OpenSpec specifications,
documentation, and project configuration.
2026-01-02 07:43:29 -05:00

28 lines
788 B
Transact-SQL

-- Migration: 027_CreateWorkOrderTimeView
-- Source: OLD/Database/Views/WorkOrderTime.sql
-- Union view combining WorkOrderTime_Curr and WorkOrderTime_Hist
CREATE OR ALTER VIEW [dbo].[WorkOrderTime] AS
(
SELECT hist.UniqueID,
hist.WorkOrderNumber,
hist.StepNumber,
hist.WorkCenterCode,
hist.BranchCode,
hist.AddressNumber,
hist.GlDate,
hist.LastUpdateDT
FROM dbo.WorkOrderTime_Hist hist
UNION ALL
SELECT curr.UniqueID,
curr.WorkOrderNumber,
curr.StepNumber,
curr.WorkCenterCode,
curr.BranchCode,
curr.AddressNumber,
curr.GlDate,
curr.LastUpdateDT
FROM dbo.WorkOrderTime_Curr curr
);
GO