27 lines
		
	
	
		
			464 B
		
	
	
	
		
			MySQL
		
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			464 B
		
	
	
	
		
			MySQL
		
	
	
	
| 
								 | 
							
								ALTER VIEW [dbo].[View_SitePerson_Checking]
							 | 
						|||
| 
								 | 
							
								AS
							 | 
						|||
| 
								 | 
							
								/*<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ*/
							 | 
						|||
| 
								 | 
							
								SELECT ch.CheckingId
							 | 
						|||
| 
								 | 
							
								,person.CardNo
							 | 
						|||
| 
								 | 
							
								,ch.PersonId
							 | 
						|||
| 
								 | 
							
								,ch.ProjectId
							 | 
						|||
| 
								 | 
							
								,person.IdentityCard
							 | 
						|||
| 
								 | 
							
								,ch.WorkAreaId
							 | 
						|||
| 
								 | 
							
								,ch.IntoOutTime
							 | 
						|||
| 
								 | 
							
								,ch.IntoOut
							 | 
						|||
| 
								 | 
							
								,ch.[Address]
							 | 
						|||
| 
								 | 
							
								,ch.WorkAreaName
							 | 
						|||
| 
								 | 
							
								,person.PersonName
							 | 
						|||
| 
								 | 
							
								,person.UnitId
							 | 
						|||
| 
								 | 
							
								,unit.UnitName
							 | 
						|||
| 
								 | 
							
								,ch.States
							 | 
						|||
| 
								 | 
							
								from  dbo.SitePerson_Checking ch 
							 | 
						|||
| 
								 | 
							
								      left join dbo.SitePerson_Person person on ch.PersonId=person.PersonId
							 | 
						|||
| 
								 | 
							
								      left join dbo.Base_Unit unit on person.UnitId=unit.UnitId
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								GO
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 |