SELECT BookId, Duedate, (SELECT Title FROM Book_Information WHERE BookId = BookId)
FROM Transaction_Information WHERE DueDate <= CURDATE() AND ReturnedDate IS NULL
The book id is the foreign key in the transaction_information. I want to add the Title field from the book information table to the transaction information table