Hi.
I'm fairly new to MySQL and don't know how to write a query I need for a personal project of mine.
I have three tables that need to be talked to in this query - books, tags, and books_tags (junction table).
The basic structure of them is fairly basic - books and tags both have an id column and a name column (in books it's called 'title' and in tags it's called 'tags'). The books_tags table has book_id and tag_id.
I want to be able to write a query which returns something like this
TITLE | TAG
--------------------
BOOK ONE | PHP
BOOK ONE | MYSQL
BOOK ONE | OOP
BOOK TWO | CSS
BOOK TWO | HTML
BOOK THREE | JAVASCRIPT
You get the idea. I was doing this using PHP loops and multiple queries but the query count got really high really fast and became a huge mess. I want to keep it lean and mean.