On Monday, May 14, 2018, tango ward <tangoward15(at)gmail(dot)com> wrote:
>
> May I ask an advice on how to approach this?
>
I can't make heads nor tails of your description...but there isn't IF in
SQL. But you may get some mileage out of simple joins.
David J.