← nvl operator page · conditional/nvl/sc_sc/non_null_first_operand
pandas ✅ · DuckDB ✅
nvl ( SC_1, SC_2 ) with SC_1 = 5 and SC_2 = 0: a first operand that is not null.
Nvl: "nvl ( 5, 0 ) returns 5".
SC_r = 5, an Integer: op1 is not null, so it is the result.
SC_r := nvl ( SC_1, SC_2 );
| SC_1 | SC_2 |
|---|---|
| 5 | 0 |
{
"scalars": [
{"name": "SC_1", "type": "Integer"},
{"name": "SC_2", "type": "Integer"}
]
}
{
"scalars": [
{"name": "SC_r", "type": "Integer", "value": "5"}
]
}