Why do I always feel inadequate?

No matter what I do or what I try to do, I always feel inadequate. In school I always feel like I don't do well enough. I feel like I can never get a decent job. For relationships, I feel like a worthless piece of trash who could never get a girlfriend.

Why do I feel this way? What can I do about it? Does anyone else ever feel like this?