thanks for that. it didnt work but i have uploaded the same database but with an additional query with what the client LoyaltyPoints total should be. i am guessing that they are all wrong. in particular ClientDetailsID 413,414,415 should be £8.38, £11.48, £16.15 respectively.
thanks