A new study has highlighted the relationship between dementia and exercise.