How do you collect data that is both representative and accurate, especially when it’s impossible to survey everyone in your community?

How do you collect data that is both representative and accurate, especially when it’s impossible to survey everyone in your community?
Remember that classroom setting where numbers seemed to blend into the chalkboard? The basic 2+2=4 became obsolete and letters started to get involved in the equation? We’ve all been there