"Alan Bullock" <liststuff(at)gmail(dot)com> wrote in message
news:e83f29$dss$1(at)sea(dot)gmane(dot)org(dot)(dot)(dot)
> hi all, I have the following schema:
>
thanks all for such prompt replies! I'm going with Martijn's solution, I'm a
total newbie and it appears simplest (though I realise it's pgsql only)