| 8 | |
| 9 | {{{#!sql |
| 10 | SELECT book.bookid, book.CoverImage, book.Title, book.Genre, book.PublishedYear, author.FirstName, author.LastName |
| 11 | FROM Book |
| 12 | INNER JOIN Book_Author ON Book.BookID = Book_Author.BookID |
| 13 | INNER JOIN Author ON Book_Author.AuthorID = Author.AuthorID |
| 14 | WHERE book.genre IN ($placeholders) AND book.PublishedYear BETWEEN $query_from AND $query_to;" |
| 15 | }}} |
| 16 | {{{#!sql |
| 17 | SELECT book.bookid, book.CoverImage, book.Title, book.Genre, book.PublishedYear, author.FirstName, author.LastName |
| 18 | FROM Book |
| 19 | INNER JOIN Book_Author ON Book.BookID = Book_Author.BookID |
| 20 | INNER JOIN Author ON Book_Author.AuthorID = Author.AuthorID WHERE book.PublishedYear BETWEEN $query_from AND $query_to; |
| 21 | |
| 22 | }}} |