Table: dbo.Employee_W2_Override
The table used to store the overrides for an Employee's W-2 information.
Columns
Name | Type | Constraints | Description
include_employee | bit (1) |  | Override for whether or not the employee should be included.
social_security_number | nvarchar (22) |  | Override for the employee's social security number.
last_name | nvarchar (60) |  | Override for the employee's last name.
suffix | nvarchar (10) |  | Override for the employee's suffix.
first_name | nvarchar (60) |  | Override for the employee's first name.
middle_name | nvarchar (60) |  | Override for the employee's middle name.
address_1 | nvarchar (80) |  | Override for the employee's address line 1.
address_2 | nvarchar (80) |  | Override for the employee's address line 2.
city | nvarchar (60) |  | Override for the employee's city.
state_abbreviation | nvarchar (4) |  | Override for the employee's state.
postal_code | nvarchar (100) |  | Override for the employee's postal code.
federal_wages | decimal (9, 2) |  | Override for the employee's federal wages.
federal_tax | decimal (9, 2) |  | Override for the employee's federal tax.
social_security_wages | decimal (9, 2) |  | Override for the employee's social security wages.
social_security_tax | decimal (9, 2) |  | Override for the employee's social security tax.
medicare_wages | decimal (9, 2) |  | Override for the employee's medicare wages.
medicare_tax | decimal (9, 2) |  | Override for the employee's medicare tax.
social_security_tips | decimal (9, 2) |  | Override for the employee's social security tips.
allocated_tips | decimal (9, 2) |  | Override for the employee's allocated tips.
earned_income_credit | decimal (9, 2) |  | Override for the employee's earned income credit.
dependent_care | decimal (9, 2) |  | Override for the employee's dependent care.
nonqualifying_457 | decimal (9, 2) |  | Override for the employee's nonqualifying 457.
nonqualifying_other | decimal (9, 2) |  | Override for the employee's nonqualifying other.
statutory | bit (1) |  | Override for the employee's statutory checkbox.
retirement | bit (1) |  | Override for the employee's retirement checkbox.
sick_pay | bit (1) |  | Override for the employee's sick pay checkbox.
employee_w2_filing_KEY | int (4) | NOT NULL | Primary key and Key in the Employee_W2_Filing table which indicates the type of filing and period end year for the corresponding employee overrides
first__treasury_tipped_occupation_code_KEY | tinyint (1) |  | Foreign key to Treasury_Tipped_Occupation_Code. Override for the first W-2 Treasury tipped occupation code. NULL indicates no override (uses the value from Employee).
second__treasury_tipped_occupation_code_KEY | tinyint (1) |  | Foreign key to Treasury_Tipped_Occupation_Code. Override for the second W-2 Treasury tipped occupation code. NULL indicates no override (uses the value from Employee).

Primary key
Name | Columns | Description
PK_Employee_W2_Override$employee_w2_filing_KEY | employee_w2_filing_KEY |

Foreign keys
Name | Columns | Referenced table | Description
FK_Employee_W2_Override__Treasury_Tipped_Occupation_Code__first__treasury_tipped_occupation_code_KEY | first__treasury_tipped_occupation_code_KEY | Treasury_Tipped_Occupation_Code (treasury_tipped_occupation_code_KEY) | Foreign key constraint linking Employee_W2_Override to Treasury_Tipped_Occupation_Code for the first W-2 tipped occupation code override.
FK_Employee_W2_Override__Treasury_Tipped_Occupation_Code__second__treasury_tipped_occupation_code_KEY | second__treasury_tipped_occupation_code_KEY | Treasury_Tipped_Occupation_Code (treasury_tipped_occupation_code_KEY) | Foreign key constraint linking Employee_W2_Override to Treasury_Tipped_Occupation_Code for the second W-2 tipped occupation code override.
FK_Employee_W2_Override__Employee_W2_Filing__employee_w2_filing_KEY | employee_w2_filing_KEY | Employee_W2_Filing (employee_w2_filing_KEY) | FOREIGN KEY constraint of employee_w2_filing_KEY for the Employee_W2_Override table which ensures the Employee_W2_Override is for a valid filing