Question
There is a Foreign Key (FK) in BOOK for AuthorID to the Primary Key of Author NOTE : Assume this is sample data and the
There is a Foreign Key (FK) in BOOK for AuthorID to the Primary Key of Author NOTE : Assume this is sample data and the real state of the database may have different values. (2 pts each )
-
Create the Relational Algebra to return the ISBN, Bookname and AuthorID for all fiction books.
-
Write the Tuple Relational Calculus to return ISBN, Bookname and AuthorID for all fiction books.
-
What is the resulting relation of ( ) h,h h=
-
Write the relational algebra to return the count and type of all the books. ( How many Fiction, non-Fiction etc )
-
Write the relational algebra to return the book name, and author that wrote the book.
-
Write the relational algebra to return the author and books they wrote, if they didnt write any books then a null should be returned for the book name.
-
Write the tuple relational calculus to return the names of authors who have not written any books.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started