SELECT *, COUNT(*) in SQLite
count(*) is an aggregate function. Aggregate functions need to be grouped for a meaningful results. You can read: count columns group by
count(*) is an aggregate function. Aggregate functions need to be grouped for a meaningful results. You can read: count columns group by