﻿CREATE 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
)