A short description of some of the table relationships can be found here (along with some queries I was working on): viewtopic.php?f=61&t=98825
A quick summary:
I've got a database that stories info on fanfics (aka fics) I have saved. There's a many-to-many relationship between fanfics and several other tables: authors, fandoms, ships, themes, and characters. This, of course, requires junction tables between each (the database has a total of 15 tables, 7 of which are junction tables (because there's also a many-to-many relationship between fandoms and ships, and fandoms and authors). When I create queries, I generally present all results with author, fanfic title, and a few other items from the Fanfics table (wordcount, rating, weblink), and sometimes fandom, depending on what the query is focusing on (some filter by fandom, but others are filtered by theme, or by one of multiple checkboxes in the Fanfics table).
One issue that I'm starting to be aware of (which will be more of an issue as I enter more data that fits into that category) is the situation of multi-author fics, and multi-fandom fics. For instance, should I run my Favorites query, which pulls all fanfics with a check in the Fav checkbox on the Fanfics table, a fic that appears in two fandoms (and is marked as a favorite) will appear twice in the query results, once under each of the fandom names. The same goes for any fic that was written by more than one author and which fits the other criteria for the query - it would appear twice, once under each author name.
Currently, duplicate results are duplicate in everything except for the double criteria column. In other words, a fic in both fandoms will not be visible as a crossover (multi-fandom) fic in the results except if one notices it's listed twice in the results. A fic written by two authors will not appear as if it's multi-authored unless one happens to notice it appearing under both authors. This is most definitely not the result I would want.
There are two possible results I can imagine:
1) The two separate entries are combined into one single row per fic, so that the Fandom column has "Fandom1, Fandom2" listed in the results. This means that it's easy to see that the fic is a multi-fandom fic at a glance. The downside is that as it appears only once, it would be alphabetized next to Fandom1. If I were to look for fics that are in Fandom2, I would not see that fic because it's not alphabetized next to Fandom2.
2) The unique information is duplicated across both entries. For instance, in the multifandom example above, the fic would appear in results twice - and both times it would have both fandoms listed. One entry would have "Fandom1, Fandom2", and the other would be "Fandom2, Fandom1".
I'm pretty sure the database should have a method of producing result #1. I'm quite less sure of the possibility of #2, but I would really love it. Does anyone know if it's possible? And if not, how do I achieve result #1, at least?
I did some searching regarding combining how I might combine fandoms or authors together, and this link indicates that there is some sort of aggregate function thing that will combine multiple rows into one, but I'm uncertain of how to apply that to my situation: https://www.thepolyglotdeveloper.com/20 ... ingle-row/
My database seems considerably more complicated than all of the example ones - which means almost any query example they have doesn't help much, lol.
Your input and suggestions are much appreciated!