← less operator page · comparison/less/sc_sc/alphabetical_string_order
pandas ✅ · DuckDB ✅
SC_1 < SC_2 with SC_1 = "hello" and SC_2 = "hi": two strings.
Less than, semantics for scalar operations: "``"hello" < "hi"`` gives true".
SC_r = true, a Boolean, as the page gives it: hello sorts before hi.
SC_r := SC_1 < SC_2;
| SC_1 | SC_2 |
|---|---|
| hello | hi |
{
"scalars": [
{"name": "SC_1", "type": "String"},
{"name": "SC_2", "type": "String"}
]
}
{
"scalars": [
{"name": "SC_r", "type": "Boolean", "value": true}
]
}