RPG wrote: ↑Thu Nov 09, 2023 11:12 am
As far I know does have OldMan63 a spreadsheet with 5000 records.
A new example short example you can find here:
Ja, weer de muziek collectie
Maybe it is possible to use the spreadsheet for the database or copy the data in a new database.
Of course it is possible to copy cell values from a spreadsheet into a database.
First of all, the database should be ready made with all tables and relations because changing the structure of a populated database can be rather difficult.
Then you have 2 options:
- Copy spreadsheet data as a temporary table(s) into the database and use the SQL language to populate the actual tables with valid data.
- Use Calc to generate valid row sets that can be copied directly from sheet to table. You have to test if data are consistent and complete, otherwise the database may reject data.
I see the spreadsheet "Map1.ods" with the first sheet having artists and titles as flat text with no relation to any other table. In this particular case, I would stick to that "main table" without splitting artists or titles into separate tables.
Store the titles and artist names as VARCHAR_IGNORECASE and add indices on these fields. This makes it easier and faster to search through the text.
For the genres, you should ask yourself if some piece of music is associated to one distinct genre (one-to-many) or if multiple genres should be possible (many-to-many) or if you just need some text column with searchabel keywords. The latter is not convenient to get razor sharp statistics from.