Thanks for the reply. I tried what I think you said and can't restore.
I have 2 databases call them w177.sdb and w166.sdb .
w177 has 6 years of data from 2016 to Aug 4, 2021, w166.sdb has 1 year of data from Sept 2021.
I want to combine them.
I did a sqlite3 w166.sdp . dump archive > dum166.sql.
Tried a sqlite3 w177.sdb < dum166.sql
and it sure didn't like that, complained table archive has 52 columns but 114 values were supplied & UNIQUE constraint failed: archive_day_***** for all of them.
Tried a sqlite3 .restore w177.sdb dum166.sql
and that did not work
Any suggestions on what I am doing wrong?