Answer the question
In order to leave comments, you need to log in
How to get the latest from records with the same id?
I'm using PhpMyAdmin, when I run a query
SELECT books.name,
books.pub_date,
books.id,
log_taking.returned_at,
log_taking.taken_at,
readers.last_name,
readers.first_name
FROM books
JOIN log_taking ON books.id = log_taking.book_id
JOIN readers ON readers.id = log_taking.reader_id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question