Database question - need hints on searching for items not assigned to any collection
I have a pretty big library (~5800 items) and I am interested in identifying all items that are _not_ assigned to one of my collections. Doing it manually with the ctrl key seems labor intensive.
I'm familiar with using an sqlite client. What I'm not finding by browsing tables in my database is an obvious way to do what I'm trying to do. The table collectionItems might be the key, but at first glance, it appears that the item ids of library items that are _not_ assigned to a collection would not appear in that table. Is that correct? If so, then the solution that came mind first was to search the sequence of item ids (1-~5800) and find missing item ids (maybe using something like what this person tried https://stackoverflow.com/questions/1057389/sql-query-to-find-missing-sequence-numbers). I'm looking for suggestions if anybody knows a better way.
I'm familiar with using an sqlite client. What I'm not finding by browsing tables in my database is an obvious way to do what I'm trying to do. The table collectionItems might be the key, but at first glance, it appears that the item ids of library items that are _not_ assigned to a collection would not appear in that table. Is that correct? If so, then the solution that came mind first was to search the sequence of item ids (1-~5800) and find missing item ids (maybe using something like what this person tried https://stackoverflow.com/questions/1057389/sql-query-to-find-missing-sequence-numbers). I'm looking for suggestions if anybody knows a better way.
Edit: Your title says "any collection", so I assumed you don't mean not in a *particular* collection.