CNCEC_SUBQHSE_WUHUAN/DataBase/版本日志/SGGLDB_WH_2024-06-27-bwj.sql

13 lines
405 B
Transact-SQL

CREATE VIEW View_MonthReport_InspectionManagement
AS
/************Ô±¨È¡Êý************/
select im.InspectionId,
im.ProjectId,
im.CNProfessionalId,
im.IsOnceQualified,
im.InspectionDate,
detail.UnitWorkId
from ProcessControl_InspectionManagement as im
left join (select distinct(InspectionId),UnitWorkId from ProcessControl_InspectionManagementDetail) as detail on detail.InspectionId = im.InspectionId
go