Note2: Oracle is not being backed up. You need to save anything you need long-term in the leland file system.
DESCRIBE Foo;
If the semantics of your application includes relations that are expected to be relatively small (e.g., schools within a university), it is fine to use some small relations, but please ensure that you have relations of the sizes prescribed above as well. When writing a program to fabricate data, there are two important points to keep in mind:
Turn in your program code for generating or transforming data, a small sample of the records generated for each relation (5 or so records per relation), and a script showing the loading of your data into Oracle.
BookAuthor(book, author, earnings) BookReference(book, referencedBook, times) BookReview(book, reviewer, score) BookPublish(book, year, publisher, price, num)
In this database, each book may have one or more authors and each author may make a different amount of money from that book. One book may make reference to other books. One book may be reviewed by different reviewers and get different scores. An author could also be a reviewer and a publisher.
Write the following quries in relational algebra or SQL, whichever is specified in the query. For relational algebra, you may write a sequence of steps with named temporary relations if you like. For SQL, make sure that your outputs do not have duplicate tuples.
BookAuthor(book, author, earnings) BookReference(book, referredBook, times) BookReview(book, reviewer, score) BookPublish(book, year, publisher, price, num)
Write the following data modifications in SQL.