A hypergeometric type equation satisfying certain conditions defines either a finite or an infinite system of orthogonal polynomials. We present in a unified and explicit way all these systems of orthogonal polynomials, the associated special functions and the corresponding raising/lowering operators. The equations considered are directly related to some Schrödinger type equations (Pöschl-Teller, Scarf, Morse, etc), and the special functions defined are related to the corresponding bound-state eigenfunctions.