26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
28 lines
788 B
Transact-SQL
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
|