Table: dbo.Employee_W2_Box_12_Other_Item
A table to hold Box 12 other items for employees. This allows Box 12 items without association to a pay item
Columns
NameTypeConstraintsDescription
employee_w2_box_12_other_item_KEYint (4)NOT NULLPrimary key for this table
employee_KEYint (4)NOT NULLThe employee key for this Box 12 item. This field combined with the processing_year and the w2_compensation_code_type_KEY fields must be unique
w2_compensation_code_type_KEYint (4)NOT NULLThe w2 compensation code type for this Box 12 item. This field combined with the processing_year and the employee_KEY fields must be unique
processing_yearint (4)NOT NULLThe year that this Box 12 item is valid. This field combined with the employee_KEY and the w2_compensation_code_type_KEY fields must be unique
amountdecimal (9, 2)NOT NULLThe amount for this Box 12 item
Primary key
NameColumnsDescription
PK_Employee_W2_Box_12_Other_Itememployee_w2_box_12_other_item_KEY
Unique constraints
NameColumnsDescription
UK_Employee_W2_Box_12_Other_Item$employee_KEY$w2_compensation_code_type_KEY$processing_yearemployee_KEY, w2_compensation_code_type_KEY, processing_year
Foreign keys
NameColumnsReferenced tableDescription
FK_Employee_W2_Box_12_Other_Item__Employee__employee_KEYemployee_KEYEmployee (employee_KEY)
FK_Employee_W2_Box_12_Other_Item__W2_Compensation_Code_Type__w2_compensation_code_type_KEYw2_compensation_code_type_KEYW2_Compensation_Code_Type (w2_compensation_code_type_KEY)

Schema diagram