Basic Query3
Basic Query3
In the examples, we will use a data structure that represents information about books, their authors, and publishers. The class
diagram for that kind of data structure is shown on the figure below:
Each book can have several authors and one publisher. The fields associated to entities are shown on the diagram. Book has
information about ISBN, price, number of pages, publication date, and title. Also, it has a reference to a publisher, and a
reference to a set of authors. Author has a first name and last name without reference back to a book, and publisher has just
a name without reference to books he published.
There will be the assumption that a collections of books, publishers, and authors are placed in the SampleData.Books,
SampleData.Publishers, and SampleData.Authors fields.