They worked in a wide variety of jobs and had been doing the same type of work for more than 25 years, on average, before they retired.
The study found that people who had worked in jobs with greater mental demands were more likely to have better memories before they retired.
They were more likely to have slower declines in memory than people who had worked in jobs with fewer mental demands.