13 lines
		
	
	
		
			405 B
		
	
	
	
		
			MySQL
		
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			405 B
		
	
	
	
		
			MySQL
		
	
	
	
|  | 
 | |||
|  | CREATE VIEW View_MonthReport_InspectionManagement
 | |||
|  | AS
 | |||
|  | /************<EFBFBD>±<EFBFBD>ȡ<EFBFBD><EFBFBD>************/
 | |||
|  | 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
 |