Difference between revisions of "HumanResources.EmployeePayHistory (table)"
(10 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
| '''Table | | '''Table | ||
| HumanResources.EmployeePayHistory | | HumanResources.EmployeePayHistory | ||
− | |- | + | |- valign="top" |
+ | | '''Description | ||
+ | | Employee pay history. | ||
|} | |} | ||
− | + | === 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 15: | Line 17: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''Description |
− | + | ||
− | + | |- valign="top" | |
− | |- | ||
| EmployeeID | | EmployeeID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Employee identification number. Foreign key to Employee.EmployeeID. |
− | + | |- valign="top" | |
− | |- | ||
| RateChangeDate | | RateChangeDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Date the change in pay is effective |
− | + | |- valign="top" | |
− | |- | ||
| Rate | | Rate | ||
| money | | money | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Salary hourly rate. |
− | + | |- valign="top" | |
− | |- | ||
| PayFrequency | | PayFrequency | ||
| tinyint | | tinyint | ||
| not null | | not null | ||
| | | | ||
− | | | + | | 1 = Salary received monthly, 2 = Salary received biweekly |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | 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 | ||
+ | |- valign="top" | ||
+ | | 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 | ||
+ | |- valign="top" | ||
+ | | CK_EmployeePayHistory_PayFrequency | ||
+ | | ([PayFrequency]=(2) OR [PayFrequency]=(1)) | ||
+ | | Check constraint [PayFrequency]=(3) OR [PayFrequency]=(2) OR [PayFrequency]=(1) | ||
+ | |- valign="top" | ||
+ | | 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 62: | Line 84: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[HumanResources.Employee_(table)|HumanResources.Employee]] | | [[HumanResources.Employee_(table)|HumanResources.Employee]] | ||
| EmployeeID | | EmployeeID | ||
| EmployeeID | | EmployeeID | ||
|} | |} | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[HumanResources_(schema)|HumanResources]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | === Dependencies === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Insert | ||
+ | | Procedure | ||
+ | | [[HumanResources.uspUpdateEmployeeHireInfo_(procedure)|HumanResources.uspUpdateEmployeeHireInfo]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Line 74: | Line 126: | ||
| '''Table | | '''Table | ||
| HumanResources.EmployeePayHistory | | HumanResources.EmployeePayHistory | ||
− | |- | + | |- valign="top" |
− | |||
| '''Description | | '''Description | ||
| Employee pay history. | | Employee pay history. | ||
|- | |- | ||
− | |||
|} | |} | ||
Line 96: | Line 146: | ||
| not null | | not null | ||
| | | | ||
− | | Employee identification number. Foreign key to Employee.EmployeeID.PK_EmployeePayHistory_EmployeeID_RateChangeDate | + | | Employee identification number. Foreign key to Employee.EmployeeID.<br />PK_EmployeePayHistory_EmployeeID_RateChangeDate |
|- valign="top" | |- valign="top" | ||
| RateChangeDate | | RateChangeDate | ||
Line 102: | Line 152: | ||
| not null | | not null | ||
| | | | ||
− | | Date the change in pay is | + | | Date the change in pay is effective<br />PK_EmployeePayHistory_EmployeeID_RateChangeDate |
|- valign="top" | |- valign="top" | ||
| Rate | | Rate | ||
Line 108: | Line 158: | ||
| not null | | not null | ||
| | | | ||
− | | Salary hourly rate. | + | | Salary hourly rate.<br /> |
|- valign="top" | |- valign="top" | ||
| PayFrequency | | PayFrequency | ||
Line 114: | Line 164: | ||
| not null | | not null | ||
| | | | ||
− | | 1 = Salary received monthly, 2 = Salary received biweekly | + | | 1 = Salary received monthly, 2 = Salary received biweekly<br /> |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 120: | Line 170: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Line 140: | Line 190: | ||
{| 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" | ||
− | | ''' | + | | '''Dependency Type |
| '''Object Type | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[HumanResources_(schema)|HumanResources]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
| '''Reference Type | | '''Reference Type | ||
− | + | | '''Object Type | |
+ | | '''Referencing Object | ||
+ | |||
|- | |- | ||
+ | | Insert | ||
+ | | Procedure | ||
| [[HumanResources.uspUpdateEmployeeHireInfo_(procedure)|HumanResources.uspUpdateEmployeeHireInfo]] | | [[HumanResources.uspUpdateEmployeeHireInfo_(procedure)|HumanResources.uspUpdateEmployeeHireInfo]] | ||
− | + | ||
− | |||
|} | |} |
Latest revision as of 23:15, 23 June 2010
Contents
wikibot[edit]
Table | HumanResources.EmployeePayHistory |
Description | Employee pay history. |
Columns[edit]
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[edit]
Primary Key | Columns |
PK_EmployeePayHistory_EmployeeID_RateChangeDate | EmployeeID, RateChangeDate |
Check Constraints[edit]
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[edit]
Relation | Column | Referenced Column |
HumanResources.Employee | EmployeeID | EmployeeID |
References[edit]
Dependency Type | Object Type | Referenced Object |
Schema | Schema | HumanResources |
Dependencies[edit]
Reference Type | Object Type | Referencing Object |
Insert | Procedure | HumanResources.uspUpdateEmployeeHireInfo |
automatically generated[edit]
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 |