Hello!
I need to create a column that do some operation with multiple user inputs. If one of the inputs is not provided, I need to get a default value from my table. I need something like:
SELECT
[[{{INPUT_1}} --]] DEFAULT_1 * [[{{INPUT_2}} --]] DEFAULT_2 * [[{{INPUT_3}} --]] DEFAULT_3
FROM MY_TABLE
This works if no input is provided, the content inside all brackets is ignored. But if an input is provided, this query fails because everything after the brackets will be ignored.
I need something "if some input is not provided, we use the default value from the table, if the input is provided, we ignore the default value".
Someone knows how can I do that?
Thanks in advance.