I have an S-corp. I received a 1099, but since I also paid myself to pay taxes, I have a w2. Do I file both with my taxes? Or just one of them?

Won't using both 1099 and w2 come up as duplicate income?  Please provide clarification.  Thanks!