My wife used to work at Oracle and quit in January 2016. While she was there, she bought Oracle stock under an ESPP (employee stock purchase plan) that allowed her to buy the stock at a discount.
In 2017, she sold this Oracle stock.
Oracle issued her a W-2 for 2017. We asked them why and they said it related to the sale of this stock.
Is this a mistake by Oracle? It seems that any taxable income from Oracle would have been at the time she purchased the stock, and it seems that selling the stock would not be any W-2 income.