In SQLite, is there any way of ordering by the number of NULL values in each row, without having stored this number explicitly in a separate column?
Something like
SELECT rowid FROM
(SELECT rowid, COUNT_NULLS(column_1,column_2,...,column_n) AS num_nulls FROM rows)
ORDER BY num_nulls;