Lesson 3.1 · Pro

CASE WHEN: if-then logic in a column

Label rows, combine columns and set a custom sort order with CASE.

In this lesson

  1. Label rows with CASE WHEN
  2. Short form: CASE column WHEN value
  3. Use IN and LIKE inside CASE
  4. Build one column from two
  5. Sort in your own order