Find books that are currently borrowed
Remember this rule:
text
borrow_return_date IS NULL
sql
SELECT
br.borrow_id,
CONCAT(
s.student_first_name,
' ',
s.student_last_name
) AS student_name,
b.book_title,
b.book_author,
b.book_category,
br.borrow_date
FROM borrow br
INNER JOIN students s
ON br.student_id = s.student_id
INNER JOIN books b
ON br.book_id = b.book_id
WHERE br.borrow_return_date IS NULL
ORDER BY br.borrow_date DESC;
sql
WHERE br.borrow_return_date IS NULL
Sign in to save your progress permanently.
Progress is saved in your browser session
Step 15 of 19