Table: dbo.Employee_W2_Box_12_Override
The table used to store the overrides for an Employee's box 12 information.
Columns
NameTypeConstraintsDescription
employee_w2_box_12_override_KEYint (4)NOT NULLPrimary key.
employee_KEYint (4)NOT NULLForeign key into the Employee table.
w2_compensation_code_type_KEYint (4)NOT NULLForeign key into the W2 Compensation Code Type table.
amountdecimal (9, 2)NOT NULLOverride for the Box 12 amount.
w2_override_type_KEYint (4)NOT NULLThe foreign key into the W2_Override_Type table.
Primary key
NameColumnsDescription
PK_Employee_W2_Box_12_Overrideemployee_w2_box_12_override_KEY
Unique constraints
NameColumnsDescription
UK_Employee_W2_Box_12_Override$employee_KEY$w2_compensation_code_type_KEY$w2_override_type_KEYemployee_KEY, w2_compensation_code_type_KEY, w2_override_type_KEY
Foreign keys
NameColumnsReferenced tableDescription
FK_Employee_W2_Box_12_Override__Employee__employee_KEYemployee_KEYEmployee (employee_KEY)
FK_Employee_W2_Box_12_Override__W2_Compensation_Code_Type__w2_compensation_code_type_KEYw2_compensation_code_type_KEYW2_Compensation_Code_Type (w2_compensation_code_type_KEY)
FK_Employee_W2_Box_12_Override__W2_Override_Type__w2_override_type_KEYw2_override_type_KEYW2_Override_Type (w2_override_type_KEY)

Schema diagram