Can I create computed columns in SQLite?
Yes, it is possible. This feature was added on 2020-01-22 - SQLite 3.31.0
Generated Columns
Generated columns (also sometimes called "computed columns") are columns of a table whose values are a function of other columns in the same row. Generated columns can be read, but their values can not be directly written. The only way to change the value of a generated columns is to modify the values of the other columns used to calculate the generated column.
CREATE TABLE t1(
a INTEGER PRIMARY KEY,
b INT,
c TEXT,
d INT GENERATED ALWAYS AS (a*abs(b)) VIRTUAL,
e TEXT GENERATED ALWAYS AS (substr(c,b,b+1)) STORED
);
Important:
The expression of a generated column may only reference constant
literals and columns within the same row, and may only use scalar
deterministic functions. The expression may not use subqueries,
aggregate functions, window functions, or table-valued functions.
The expression of a generated column may refer to other generated
columns in the same row, but no generated column can depend upon
itself, either directly or indirectly.
It means that you cannot create a computed column in a way it will depend on other tables as stated in original question. So the viable solutions are view or trigger as already proposed.