Difference between revisions of "HumanResources.Employee (table)"
| Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| HumanResources.Employee | | HumanResources.Employee | ||
| + | |- valign="top" | ||
| + | | '''Description | ||
| + | | Employee information such as salary, department, and title. | ||
|- | |- | ||
|} | |} | ||
| Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''PK | + | | '''Description / PK / Index |
| − | |||
| − | |- | + | |- valign="top" |
| EmployeeID | | EmployeeID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | PK_Employee_EmployeeID | + | | Primary key for Employee records.<br />PK_Employee_EmployeeID |
| − | + | |- valign="top" | |
| − | |- | ||
| NationalIDNumber | | NationalIDNumber | ||
| nvarchar(15) | | nvarchar(15) | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Unique national identification number such as a social security number.<br />AK_Employee_NationalIDNumber |
| − | + | |- valign="top" | |
| − | |- | ||
| ContactID | | ContactID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Identifies the employee in the Contact table. Foreign key to Contact.ContactID.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| LoginID | | LoginID | ||
| nvarchar(256) | | nvarchar(256) | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Network login.<br />AK_Employee_LoginID |
| − | + | |- valign="top" | |
| − | |- | ||
| ManagerID | | ManagerID | ||
| int | | int | ||
| null | | null | ||
| | | | ||
| − | | | + | | Manager to whom the employee is assigned. Foreign Key to Employee.M<br />IX_Employee_ManagerID |
| − | + | |- valign="top" | |
| − | |- | ||
| Title | | Title | ||
| nvarchar(50) | | nvarchar(50) | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Work title such as Buyer or Sales Representative.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| BirthDate | | BirthDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Date of birth.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| MaritalStatus | | MaritalStatus | ||
| nchar(1) | | nchar(1) | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | M = Married, S = Single<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| Gender | | Gender | ||
| nchar(1) | | nchar(1) | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | M = Male, F = Female<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| HireDate | | HireDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
| − | | | + | | Employee hired on this date.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| SalariedFlag | | SalariedFlag | ||
| dbo.Flag | | dbo.Flag | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
| − | | | + | | Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| VacationHours | | VacationHours | ||
| smallint | | smallint | ||
| not null | | not null | ||
| ((0)) | | ((0)) | ||
| − | | | + | | Number of available vacation hours.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| SickLeaveHours | | SickLeaveHours | ||
| smallint | | smallint | ||
| not null | | not null | ||
| ((0)) | | ((0)) | ||
| − | | | + | | Number of available sick leave hours.<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| CurrentFlag | | CurrentFlag | ||
| dbo.Flag | | dbo.Flag | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
| − | | | + | | 0 = Inactive, 1 = Active<br /> |
| − | + | |- valign="top" | |
| − | |- | ||
| rowguid | | rowguid | ||
| uniqueidentifier | | uniqueidentifier | ||
| not null | | not null | ||
| (newid()) | | (newid()) | ||
| − | | | + | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.<br />AK_Employee_rowguid |
| − | + | |- valign="top" | |
| − | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
| − | | | + | | Date and time the record was last updated.<br /> |
| − | |||
|} | |} | ||
| Line 197: | Line 183: | ||
| INSTEAD OF DELETE | | INSTEAD OF DELETE | ||
|} | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Dependency Type | ||
| + | | '''Object Type | ||
| + | | '''Referenced Object | ||
| + | |||
| + | |- | ||
| + | | Data Type | ||
| + | | Type | ||
| + | | [[dbo.Flag_(type)|dbo.Flag]] | ||
| + | |||
| + | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Reference Type | ||
| + | | '''Object Type | ||
| + | | '''Referencing Object | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | View | ||
| + | | [[HumanResources.vEmployee_(view)|HumanResources.vEmployee]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | View | ||
| + | | [[HumanResources.vEmployeeDepartment_(view)|HumanResources.vEmployeeDepartment]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | View | ||
| + | | [[HumanResources.vEmployeeDepartmentHistory_(view)|HumanResources.vEmployeeDepartmentHistory]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | View | ||
| + | | [[Sales.vSalesPerson_(view)|Sales.vSalesPerson]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | View | ||
| + | | [[Sales.vSalesPersonSalesByFiscalYears_(view)|Sales.vSalesPersonSalesByFiscalYears]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | Procedure | ||
| + | | [[dbo.uspGetEmployeeManagers_(procedure)|dbo.uspGetEmployeeManagers]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | Procedure | ||
| + | | [[dbo.uspGetManagerEmployees_(procedure)|dbo.uspGetManagerEmployees]] | ||
| + | |||
| + | |- | ||
| + | | Update | ||
| + | | Procedure | ||
| + | | [[HumanResources.uspUpdateEmployeeHireInfo_(procedure)|HumanResources.uspUpdateEmployeeHireInfo]] | ||
| + | |||
| + | |- | ||
| + | | Update | ||
| + | | Procedure | ||
| + | | [[HumanResources.uspUpdateEmployeeLogin_(procedure)|HumanResources.uspUpdateEmployeeLogin]] | ||
| + | |||
| + | |- | ||
| + | | Update | ||
| + | | Procedure | ||
| + | | [[HumanResources.uspUpdateEmployeePersonalInfo_(procedure)|HumanResources.uspUpdateEmployeePersonalInfo]] | ||
| + | |||
| + | |- | ||
| + | | Select | ||
| + | | SQL table-valued-function | ||
| + | | [[dbo.ufnGetContactInformation_(function)|dbo.ufnGetContactInformation]] | ||
| + | |||
| + | |} | ||
| + | |||
| + | |||
| + | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:54, 28 December 2009
wikibot
| Table | HumanResources.Employee |
| Description | Employee information such as salary, department, and title. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| EmployeeID | int | not null | Primary key for Employee records. PK_Employee_EmployeeID | |
| NationalIDNumber | nvarchar(15) | not null | Unique national identification number such as a social security number. AK_Employee_NationalIDNumber | |
| ContactID | int | not null | Identifies the employee in the Contact table. Foreign key to Contact.ContactID. | |
| LoginID | nvarchar(256) | not null | Network login. AK_Employee_LoginID | |
| ManagerID | int | null | Manager to whom the employee is assigned. Foreign Key to Employee.M IX_Employee_ManagerID | |
| Title | nvarchar(50) | not null | Work title such as Buyer or Sales Representative. | |
| BirthDate | datetime | not null | Date of birth. | |
| MaritalStatus | nchar(1) | not null | M = Married, S = Single | |
| Gender | nchar(1) | not null | M = Male, F = Female | |
| HireDate | datetime | not null | Employee hired on this date. | |
| SalariedFlag | dbo.Flag | not null | ((1)) | Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining. |
| VacationHours | smallint | not null | ((0)) | Number of available vacation hours. |
| SickLeaveHours | smallint | not null | ((0)) | Number of available sick leave hours. |
| CurrentFlag | dbo.Flag | not null | ((1)) | 0 = Inactive, 1 = Active |
| rowguid | uniqueidentifier | not null | (newid()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_Employee_rowguid |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| Person.Contact | ContactID | ContactID |
| HumanResources.Employee | ManagerID | EmployeeID |
| Detail Table | Column | Referencing Column |
| HumanResources.Employee | EmployeeID | ManagerID |
| HumanResources.EmployeeAddress | EmployeeID | EmployeeID |
| HumanResources.EmployeeDepartmentHistory | EmployeeID | EmployeeID |
| HumanResources.EmployeePayHistory | EmployeeID | EmployeeID |
| HumanResources.JobCandidate | EmployeeID | EmployeeID |
| Purchasing.PurchaseOrderHeader | EmployeeID | EmployeeID |
| Sales.SalesPerson | EmployeeID | SalesPersonID |
| Triggers | Type |
| dEmployee | INSTEAD OF DELETE |
| Dependency Type | Object Type | Referenced Object |
| Data Type | Type | dbo.Flag |
| Reference Type | Object Type | Referencing Object |
| Select | View | HumanResources.vEmployee |
| Select | View | HumanResources.vEmployeeDepartment |
| Select | View | HumanResources.vEmployeeDepartmentHistory |
| Select | View | Sales.vSalesPerson |
| Select | View | Sales.vSalesPersonSalesByFiscalYears |
| Select | Procedure | dbo.uspGetEmployeeManagers |
| Select | Procedure | dbo.uspGetManagerEmployees |
| Update | Procedure | HumanResources.uspUpdateEmployeeHireInfo |
| Update | Procedure | HumanResources.uspUpdateEmployeeLogin |
| Update | Procedure | HumanResources.uspUpdateEmployeePersonalInfo |
| Select | SQL table-valued-function | dbo.ufnGetContactInformation |
automatically generated
| Table | HumanResources.Employee |
| Description | Employee information such as salary, department, and title. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| EmployeeID | int | not null | Primary key for Employee records. PK_Employee_EmployeeID | |
| NationalIDNumber | nvarchar(15) | not null | Unique national identification number such as a social security number. AK_Employee_NationalIDNumber | |
| ContactID | int | not null | Identifies the employee in the Contact table. Foreign key to Contact.ContactID. | |
| LoginID | nvarchar(256) | not null | Network login. AK_Employee_LoginID | |
| ManagerID | int | null | Manager to whom the employee is assigned. Foreign Key to Employee.M IX_Employee_ManagerID | |
| Title | nvarchar(50) | not null | Work title such as Buyer or Sales Representative. | |
| BirthDate | datetime | not null | Date of birth. | |
| MaritalStatus | nchar(1) | not null | M = Married, S = Single | |
| Gender | nchar(1) | not null | M = Male, F = Female | |
| HireDate | datetime | not null | Employee hired on this date. | |
| SalariedFlag | Flag | not null | (1) | Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining. |
| VacationHours | smallint | not null | (0) | Number of available vacation hours. |
| SickLeaveHours | smallint | not null | (0) | Number of available sick leave hours. |
| CurrentFlag | Flag | not null | (1) | 0 = Inactive, 1 = Active |
| rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. AK_Employee_rowguid |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| Person.Contact | ContactID | ContactID |
| HumanResources.Employee | ManagerID | EmployeeID |
| Detail Table | Column | Referencing Column |
| HumanResources.Employee | EmployeeID | ManagerID |
| HumanResources.EmployeeAddress | EmployeeID | EmployeeID |
| HumanResources.EmployeeDepartmentHistory | EmployeeID | EmployeeID |
| HumanResources.EmployeePayHistory | EmployeeID | EmployeeID |
| HumanResources.JobCandidate | EmployeeID | EmployeeID |
| Purchasing.PurchaseOrderHeader | EmployeeID | EmployeeID |
| Sales.SalesPerson | EmployeeID | SalesPersonID |
| Triggers | Type |
| dEmployee | INSTEAD OF DELETE |
| Dependency Type | Object Type | Referenced Object |
| Data Type | Type | dbo.Flag |
| Schema | Schema | HumanResources |
| Reference Type | Object Type | Referencing Object |
| Select | View | HumanResources.vEmployee |
| Select | View | HumanResources.vEmployeeDepartment |
| Select | View | HumanResources.vEmployeeDepartmentHistory |
| Select | View | Sales.vSalesPerson |
| Select | View | Sales.vSalesPersonSalesByFiscalYears |
| Select | Procedure | dbo.uspGetEmployeeManagers |
| Select | Procedure | dbo.uspGetManagerEmployees |
| Update | Procedure | HumanResources.uspUpdateEmployeeHireInfo |
| Update | Procedure | HumanResources.uspUpdateEmployeeLogin |
| Update | Procedure | HumanResources.uspUpdateEmployeePersonalInfo |
| Select | SQL table-valued-function | dbo.ufnGetContactInformation |