Difference between revisions of "HumanResources.EmployeePayHistory (table)"
| Line 12: | Line 12: | ||
| + | === Columns === | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
| Line 18: | Line 19: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
| Line 25: | Line 26: | ||
| not null | | not null | ||
| | | | ||
| − | | Employee identification number. Foreign key to Employee.EmployeeID. | + | | Employee identification number. Foreign key to Employee.EmployeeID. |
|- valign="top" | |- valign="top" | ||
| RateChangeDate | | RateChangeDate | ||
| Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
| − | | Date the change in pay is effective | + | | Date the change in pay is effective |
|- valign="top" | |- valign="top" | ||
| Rate | | Rate | ||
| Line 37: | Line 38: | ||
| not null | | not null | ||
| | | | ||
| − | | Salary hourly rate. | + | | Salary hourly rate. |
|- valign="top" | |- valign="top" | ||
| PayFrequency | | PayFrequency | ||
| Line 43: | Line 44: | ||
| not null | | not null | ||
| | | | ||
| − | | 1 = Salary received monthly, 2 = Salary received biweekly | + | | 1 = Salary received monthly, 2 = Salary received biweekly |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
| Line 49: | Line 50: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
| − | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
| + | === Primary Key === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Primary Key | ||
| + | | '''Columns | ||
| + | |- | ||
| + | | PK_EmployeePayHistory_EmployeeID_RateChangeDate | ||
| + | | EmployeeID, RateChangeDate | ||
| + | |} | ||
| + | === Check Constraints === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Check Constraint | ||
| + | | '''Expression | ||
| + | | '''Description | ||
| + | |||
| + | |- | ||
| + | | CK_EmployeePayHistory_PayFrequency | ||
| + | | ([PayFrequency]=(2) OR [PayFrequency]=(1)) | ||
| + | | Check constraint [PayFrequency]=(3) OR [PayFrequency]=(2) OR [PayFrequency]=(1) | ||
| + | |- | ||
| + | | CK_EmployeePayHistory_Rate | ||
| + | | ([Rate]>=(6.50) AND [Rate]<=(200.00)) | ||
| + | | Check constraint [Rate] >= (6.50) AND [Rate] <= (200.00) | ||
| + | |} | ||
| + | === Foreign Keys === | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
| Line 66: | Line 93: | ||
|} | |} | ||
| + | === References === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Dependency Type | ||
| + | | '''Object Type | ||
| + | | '''Referenced Object | ||
| + | |- | ||
| + | | Schema | ||
| + | | Schema | ||
| + | | [[HumanResources_(schema)|HumanResources]] | ||
| + | |||
| + | |} | ||
| + | |||
| + | === Dependencies === | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
| Line 79: | Line 120: | ||
|} | |} | ||
| − | |||
Revision as of 23:06, 2 February 2010
Contents
wikibot
| Table | HumanResources.EmployeePayHistory |
| Description | Employee pay history. |
Columns
| Column | Data Type | Nullable | Default | Description |
| EmployeeID | int | not null | Employee identification number. Foreign key to Employee.EmployeeID. | |
| RateChangeDate | datetime | not null | Date the change in pay is effective | |
| Rate | money | not null | Salary hourly rate. | |
| PayFrequency | tinyint | not null | 1 = Salary received monthly, 2 = Salary received biweekly | |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key
| Primary Key | Columns |
| PK_EmployeePayHistory_EmployeeID_RateChangeDate | EmployeeID, RateChangeDate |
Check Constraints
| Check Constraint | Expression | Description |
| CK_EmployeePayHistory_PayFrequency | ([PayFrequency]=(2) OR [PayFrequency]=(1)) | Check constraint [PayFrequency]=(3) OR [PayFrequency]=(2) OR [PayFrequency]=(1) |
| CK_EmployeePayHistory_Rate | ([Rate]>=(6.50) AND [Rate]<=(200.00)) | Check constraint [Rate] >= (6.50) AND [Rate] <= (200.00) |
Foreign Keys
| Relation | Column | Referenced Column |
| HumanResources.Employee | EmployeeID | EmployeeID |
References
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | HumanResources |
Dependencies
| Reference Type | Object Type | Referencing Object |
| Insert | Procedure | HumanResources.uspUpdateEmployeeHireInfo |
automatically generated
| Table | HumanResources.EmployeePayHistory |
| Description | Employee pay history. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| EmployeeID | int | not null | Employee identification number. Foreign key to Employee.EmployeeID. PK_EmployeePayHistory_EmployeeID_RateChangeDate | |
| RateChangeDate | datetime | not null | Date the change in pay is effective PK_EmployeePayHistory_EmployeeID_RateChangeDate | |
| Rate | money | not null | Salary hourly rate. | |
| PayFrequency | tinyint | not null | 1 = Salary received monthly, 2 = Salary received biweekly | |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| HumanResources.Employee | EmployeeID | EmployeeID |
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | HumanResources |
| Reference Type | Object Type | Referencing Object |
| Insert | Procedure | HumanResources.uspUpdateEmployeeHireInfo |