Serge Rielau wrote:
>I CAN'T remove the predicate!!! Can I or can I not use a wildcard on the fly?
You BI tool should have an option to generate the predicate. It's a pretty basic capability.
Hmm... Not so simple. BI tool and automatic report generators are the real piece of junk :)
For example, you may be required to create and maintain two separate reports:
* with predicate 'id = ?'
* without this predicate
The reports, otherwise identical...
Sometimes, you can't even copy report and change sql statement without complete redesign of report.
In that case so crappy workaround may appear:
WHEN ((1 = ?) OR (id = ?))
to switch predicate 'id = ?' on and off on the fly...
--
Konstantin Andreev.