Hi everyone,
I have a problem that maybe some of you more savvy users know how to solve. I have inherited a Django website that will be converted to Webflow but the current mySQL database is a bit complex.
So, for example, I have a “books” table and an “authors” table. Since a book can have multiple authors, the way Django works is that is creates a third multi reference table, combining “book_id” with “author_id”. Basically is creates a “books_authors” table in which each row has a “book_id” and an “author_id”. So I have multiple rows with the same “book_id” and several “author_id”.
What I’m trying to do is create a new table that combines information from the 3 tables. Here’s an example:
books
-----------------------------------
+ book_id
+ book_title
authors
-----------------------------------
+ author_id
+ author_name
books_authors
-----------------------------------
+ book_id
+ author_id
new_book_table
-----------------------------------
+ book_id
+ book_title
+ author_name
I’ve been playing around with the different options for mySQL inside Parabola but I can’t find a way to merge these 3 tables into one, that I later want to convert into a CSV file.
Can someone point me in the right direction?
Thank you