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.
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.
employee_w2_filing_KEYint (4)NOT NULLKey in the Employee_W2_Filing table which indicates the type of filing and period end year for the overrides
Primary key
NameColumnsDescription
PK_Employee_W2_Box_12_Overrideemployee_w2_box_12_override_KEY
Unique constraints
NameColumnsDescription
UK_Employee_W2_Box_12_Override$employee_w2_filing_KEY$w2_compensation_code_type_KEYemployee_w2_filing_KEY, w2_compensation_code_type_KEY
Foreign keys
NameColumnsReferenced tableDescription
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__Employee_W2_Filing__employee_w2_filing_KEYemployee_w2_filing_KEYEmployee_W2_Filing (employee_w2_filing_KEY)FOREIGN KEY constraint of employee_w2_filing_KEY for the Employee_W2_Box_12_Override table which ensures the Employee_W2_Box_12_Override is for a valid filing

Schema diagram