This book provides information about working with demographics for memberships.
Enabling Custom Demographic Data Fields for Memberships