"Thomas F.O'Connell" <tfo@sitening.com> writes:
> I realize this is a trivial issue, but it seems like logic could be
> added to the CASE statement to prevent irrelevant SELECT material from
> being output.
Hardly seems worth the trouble ...
regards, tom lane