Relational Algebra & Calculus


Answer & solution
Answer: Returns (6, title) pairs for books recorded as issued to user 6. (no official key was published)
One-sentence answer: It returns user number 6 together with the titles of books recorded as issued to that user.
To see why, USERS ⋈ ISSUED first connects each issue record with the user whose User# matches. Joining this result with BOOKS on Book# adds the associated BookTitle and AuthorName. The projection π_User#,BookTitle retains just the user identifier and title, discarding names, dates, book identifiers and author names. Finally σ_User#=6 keeps only rows whose user identifier is 6.
Selection occurs after projection here without losing its input attribute, because User# is explicitly retained. It could equivalently be pushed earlier to restrict the user or issue records before the joins. Under ordinary set-based relational algebra, projection removes duplicate pairs: borrowing the same titled book more than once does not produce multiple identical (6,title) rows, and distinct books with the same title also collapse at this projection. No return-date or current-loan condition exists in the schema, so “recorded as issued” is more precise than claiming these are necessarily the user's currently unreturned books. The query yields titles with the fixed identifier 6, not a count of loans, author names, or all users who borrowed the same books.