SGGL_SHJ/DataBase/版本日志/SGGLDB_V2025-06-10-001_bwj.sql

27 lines
556 B
MySQL
Raw Normal View History

2025-06-13 10:54:16 +08:00
CREATE VIEW View_TestPackage_PipelineList
as
/*********<EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ**********/
select l.PT_PipeId,
l.PTP_ID,
l.PipelineId,
l.TestPressure,
t.ProjectId,
t.TestPackageNo,
t.TestPackageName,
t.Remark,
t.UnitWorkId,
t.Tabler,
t.TableDate,
p.PipelineCode,
uw.UnitWorkCode,
uw.UnitWorkName,
uw.UnitId,
u.UnitCode,
u.UnitName
from PTP_PipelineList l
left join PTP_TestPackage as t on t.PTP_ID=l.PTP_ID
left join HJGL_Pipeline p on p.PipelineId = l.PipelineId
left join WBS_UnitWork uw on uw.UnitWorkId = t.UnitWorkId
left join Base_Unit u on u.UnitId =uw.UnitId
go