Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider a database schema consisting of the following relational schemes: - aut

ID: 3865264 • Letter: C

Question

Consider a database schema consisting of the following relational schemes:
- author_pub (author_id, pub_id, author_position) -Refers to author Publisher
- author (author_id, last_name, first_name) – Describes Author
- pub (pub_id, book_id, title) – Gives information about Publisher
- book (book_id, year, editor, book_title, month) – Describes Book


• author_id in author_pub is a foreign key referencing author.
• pub_id in author_ pub is a foreign key referencing pub.
• book_id in pub is a foreign key referencing book.
• editor in book is a foreign key referencing author (author_id).
• Primary keys are underlined.


1. What question does the following expression answer? | author_id(author) editor(book)|
2. With the help of relational algebra expression find the names of all authors who are book editors.
3. Write the relational algebra expression that return the name of all authors who are not book editors.
4. Using relational algebra expression find the name of all authors who have at least one publication in the database.
5. What question does the following relational algebra expression answer? |author(author_pub (month=’July’(book) pub))|

Explanation / Answer

1) Getting all authors by author_id and who are noy book editors.

----------------------------------------------------------------------------------------------------------------------------------------------------

2) last_name(author) AND editor(book)   
** selecting all authors with condition that author should be an book editor.

-------------------------------------------------------------------------------------------------------------------------------------------------

3) | last_name(author) editor(book)|
*** return the name of all authors who are not book editors.

-------------------------------------------------------------------------------------------------------------------------------------------------

4) |author(author_pub (pub_id(book) pub)) > 0|
**** find the name of all authors who have at least one publication in the database.

---------------------------------------------------------------------------------------------------------------------------------------------------

5) Finding names of all authors who have published book in month of july.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote