fair enough challenge.
Originally I only wanted a select statement, as I can simply run it when I need the data.
Usually in my limited knowledge if I can work out the select statement I can then adapt it to do an update.
The update would be nice to have as I can set it as a trigger when more data is inserted into the table.
I guess the moral of the story here is think things through thoroughly at the outset!
But I do agree your solution would work.
Thanks anyway you're first bit of assistance was most helpful.