Dev Helpers

SQL / Text formatting

Lowercase a label

Dev Helpers · August 20, 2025

Lowercasing a label can simplify a display or comparison key. SQLite's built-in casing rules need particular care for non-ASCII text.

Worked example

SELECT lower('BUILD-Q') AS slug;

Result

[
  {
    "slug": "build-q"
  }
]

Implementation notes

Display normalization and uniqueness rules need consistent behaviour. Do not assume a default lowercasing function implements the same rules as your application's locale-aware search.

Try it yourself

Test a label containing accented letters alongside an ASCII label.

Open the SQL example →

Editorial date August 20, 2025 · Published December 6, 2026

Related articles

Compare two literal lists

Set operations compare rows under SQL's rules for duplicates. Check whether the result represents membership or the number of occurrences.

Count jobs per active day

Grouping timestamps by day produces counts only for days present in the data. A continuous chart may need a calendar series as well.