Sample Code 2

I need sample code/step by step instructions. A user signs in, and is able to view a graphical summary of data. For example, show distribution of age of all female/male members by ethnicity. Table 1 = ethnicityID, userID, date modified, percentage; Table 2 = userID, date of birth, gender; Table 3 = ethnicityID, ethnicity (White/black/asian)