How iif() Works in SQLite

In SQLite, iif() is a conditional function that returns the second or third argument based on the evaluation of the first argument.

It’s logically equivalent to CASE WHEN X THEN Y ELSE Z END.

iif() is an abbreviation for Immediate IF.

The iif() function was introduced in SQLite 3.32.0, which was released on 22 May 2020.

Read more

What is a Generated Column?

Some database management systems (DBMSs) include a feature called generated columns.

Also known as “computed columns”, generated columns are similar to a normal column, except that a generated column’s value is derived from an expression that computes values from other columns.

In other words, a generated column’s value is computed from other columns.

Read more