User Activity

I'm wishing to do some analysis on our customer base - things like propensity of repeat purchase and locations of purchase (from postcode) - how do i get this information and extract it for say the last 2 years?