HumanResources |
04/26/2006 |
PRIMARY |
16 |
16 |
316 |
Employee pay history. |
|
|
EmployeeID |
int |
4 |
|
|
|
|
Employee identification number. Foreign key to Employee.EmployeeID. |
|
|
RateChangeDate |
datetime |
8 |
|
|
|
|
Date the change in pay is effective |
|
|
Rate |
money |
8 |
|
|
|
|
Salary hourly rate. |
|
|
PayFrequency |
tinyint |
1 |
|
|
|
|
1 = Salary received monthly, 2 = Salary received biweekly |
|
|
ModifiedDate |
datetime |
8 |
|
(getdate()) |
|
|
Date and time the record was last updated. |
Total: 5 column(s)
Total: 1 index(es)
|
CK_EmployeePayHistory_PayFrequency |
([PayFrequency]=(2) OR [PayFrequency]=(1)) |
|
CK_EmployeePayHistory_Rate |
([Rate]>=(6.50) AND [Rate]<=(200.00)) |
Total: 2 constraint(s)
Total: 1 table(s)
Total: 6 object(s)
Total: 1 object(s)
CREATE TABLE [EmployeePayHistory] (
[EmployeeID] [int] NOT NULL ,
[RateChangeDate] [datetime] NOT NULL ,
[Rate] [money] NOT NULL ,
[PayFrequency] [tinyint] NOT NULL ,
[ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_EmployeePayHistory_ModifiedDate] DEFAULT (getdate()),
CONSTRAINT [PK_EmployeePayHistory_EmployeeID_RateChangeDate] PRIMARY KEY CLUSTERED
(
[EmployeeID],
[RateChangeDate]
) ON [PRIMARY] ,
CONSTRAINT [FK_EmployeePayHistory_Employee_EmployeeID] FOREIGN KEY
(
[EmployeeID]
) REFERENCES [Employee] (
[EmployeeID]
),
CONSTRAINT [CK_EmployeePayHistory_PayFrequency] CHECK ([PayFrequency]=(2) OR [PayFrequency]=(1)),
CONSTRAINT [CK_EmployeePayHistory_Rate] CHECK ([Rate]>=(6.50) AND [Rate]<=(200.00))
) ON [PRIMARY]
GO
List of tables