Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have 3 tables, books, authors, and togetherTable.
1.books with book_id(primary key), book_cover_image, and book_title.2.authors with author_id and author_name
3.togetherTable with book_id and author_id
How do I get the book_cover_image, title, and author for all the records in my database?
I started off with: SELECT book_cover_image, title, author FROM books, authors, togetherTable WHERE
but I don't know how to finish it.

SELECT
book_cover_image, book_title, author_name
FROM
books, authors, togetherTable
WHERE
books.book_id = togetherTable.book_id AND
authors.author_id = togetherTable.author_id;

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |