I am trying to write a section of conditional logic in the sql: section
of a derived_table using a parameter. My strong preference is to use a
string parameter to avoid using arbitrary numbers to control the
logic.This is the non-working version. No ...