by Patrick Hallermann.
Thanks Andrew, looks like what I need.
I am a newbie to queries, so will hunt around on how to do the query