27 lines
464 B
Transact-SQL
27 lines
464 B
Transact-SQL
ALTER VIEW [dbo].[View_SitePerson_Checking]
|
|
AS
|
|
/*人员考勤视图*/
|
|
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
|
|
|
|
|