We study the relationship between sampling sequences in infinite-dimensional Hilbert spaces of analytic functions and Marcinkiewicz-Zygmund inequalities in subspaces of polynomials. We focus on the study of the Hardy space, the Bergman space, and the Fock space. They provide three settings with a strikingly different behavior. This is joint work with Joaquim Ortega-Cerda.