Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Wells

and Stitt 1
Libby Wells (wells9) and Quinn Stitt (stitt1)
LIS 490 DB/Weible
Final Project Scenario- Jane Austen Library Database
Our proposed final project is a database that focuses on Jane Austen's six published novels.

It will include all six novels, their characters, movie and miniseries adaptations, related works such
as continuations and modern retellings, and actors and directors involved in the adaptations and
related movies. The purpose of this database is to aide patrons of our newly developed Jane Austen
Library search for information about Austen's novels and the books, movies, and miniseries related
to them. It is assumed that our patrons are coming to our library because of a love and enthusiasm
for one or more of Jane Austen's original books and therefore, we have decided to provide more
detailed information about the six novels than the related works or adaptations. Sample queries
could include a patron who enjoys Pride and Prejudice coming in to find movies based on the novel
or related book sequels, searching for certain actors who feature in film adaptations of the novels, or
searching for characters based on a certain marital status.

Rules and Assumptions:


The 'Book' table will only include Jane Austen's six published novels. Short stories,
novellas, essays, etc. will not be included.

Related Works' refers to sequels, prequels, or other works inspired by the original plot of
Jane Austen's novels. Examples: Clueless, Longbourn, Pride and Prejudice and Zombies,
etc.

The 'Character' table will only include the main characters (characters with important
dialogue and/or are crucial to the plot) from the Jane Austen novels.

Characters that are included in adaptations and related works but are not in the original six
novels will not be included. Instead, in the Portrays table (which connects Person to
Character), the character from the related work that is representing a character from one of
the original six novels will be referred to as the original character. For example, Colin
Firths character, Mark Darcy, in Bridget Joness Diary, will not be considered as Mark

Wells and Stitt 2


Darcy for the purpose of our database, but will be considered as Fitzwilliam Darcy from the
novel Pride and Prejudice, as that was the character that inspired his role.

Because Jane Austen did not write any sequels to her novels, a character can only be
featured in one book.

'Marital Status' refers to the marital status of the character at the beginning of the novel or
adaptation. Marital status can be 'married', 'engaged', widowed, or 'single'.

In 'Related Works' and 'Adaptation', the 'Year' attribute refers to the year published or the
year released.

When considering the relationship to the 'actor' entity, we are considering the abstract idea
of 'actor' rather than the specific actors.

The Person table includes both actors and directors that have worked on the related movies
and film adaptations included in the database. We chose to include actors and directors
because we felt that patrons would be the most likely to search by these people--writers and
producers are not included. We decided not to specify each persons title (e.g. actor or
director) for two reasons: (1) many actors are also directors, and (2) we did not feel that this
level of specificity was necessary to meet our patrons needs.

Wells and Stitt 3


Relational Schemas and Normalization-Jane Austen Library Database

When we began converting our EER diagram to relational schemas, we first had these ten tables
based on the entities included in our EER diagram.
BOOK (BookID, Title, Year_completed)
CHARACTERS (CharacterID, First_Name, Last_Name, Gender, Marital _Status)
PERSON (PersonID, Gender, First_Name, Last_Name)
PUBLISHER (PublisherID, Name)
RELATED_WORKS (WorkID, Year, Publisher)
RELATED_BOOK (WorkID, Year, Publisher)
RELATED_MOVIE (WorkID, Running_time, Production_company)
FILM_ADAPTATION (AdaptationID, Production_company, Title, Year)
ADAPTED_MOVIE (AdaptationID, Running_time)
ADAPTED_MINISERIES (AdaptationID, Number_of_episodes)
We then also created the four tables listed below to account for our relationships. We created a
linking table for each many-to-many relationship, with the publishes relationship becoming the
PUBLISHES table, the portrays relationship becoming the PORTRAYS table, and the two
works_on relationships becoming the ADAPTATION_INVOLVEMENT and
RELATED_MOVIE_INVOLVEMENT tables)
PUBLISHES (BookID, PublisherID, Year_published)
PORTRAYS (PersonID, CharacterID)
ADAPTATION_INVOLVEMENT (PersonID, AdaptationID)
RELATED_MOVIE_INVOLVEMENT (PersonID, WorkID)
Because we assigned artificial primary keys to each entity in our EER diagram, we did not have to
alter our tables in order to normalize them. They were already in 3NF.
During the implementation process, some necessary foreign keys were discovered. Below is the
final schema for our database, with these foreign keys included.
BOOK (BookID, Title, Year_completed)
CHARACTERS (CharacterID, BookID, First_Name, Last_Name, Gender, Marital _Status)


PERSON (PersonID, Gender, First_Name, Last_Name)
PUBLISHER (PublisherID, Name)
RELATED_WORKS (WorkID, BookID, Year, Publisher)
RELATED_BOOK (WorkID, Year, Publisher)
RELATED_MOVIE (WorkID, Running_time, Production_company)
FILM_ADAPTATION (AdaptationID, Production_company, Title, Year)
ADAPTED_MOVIE (AdaptationID, Running_time)
ADAPTED_MINISERIES (AdaptationID, Number_of_episodes)
PUBLISHES (BookID, PublisherID, Year_published)
PORTRAYS (PersonID, CharacterID)
ADAPTATION_INVOLVEMENT (PersonID, AdaptationID)
RELATED_MOVIE_INVOLVEMENT (PersonID, WorkID)





















Wells and Stitt 4

Wells and Stitt 5

Queries-Jane Austen Library Database


-- A patron comes into the library and wants to see what male actors play what roles in
the film adaptations of Jane Austen's novels.
SELECT FILM_ADAPTATION.Title, FILM_ADAPTATION.Year, PERSON.First_Name,
PERSON.Last_Name, CHARACTERS.First_Name, CHARACTERS.Last_Name

FROM FILM_ADAPTATION

JOIN ADAPTATION_INVOLVEMENT USING (AdaptationID)

JOIN PERSON USING (PersonID)

JOIN PORTRAYS USING (PersonID)

JOIN CHARACTERS USING (CharacterID)

WHERE PERSON.Gender='Male'

ORDER BY PERSON.Last_Name;

-- A patron comes in and wants to know how many publishers have published the book
"Persuasion" in our library.
SELECT COUNT(*)

FROM PUBLISHER

JOIN PUBLISHES USING (PublisherID)

JOIN BOOK USING (BookID)

WHERE BOOK.Title = 'Persuasion';

-- A patron comes in and wants to find how many production companies have made film
adaptations of Jane Austen's novels (ex: they enjoy BBC adaptations and want to see
how many we have).
SELECT FILM_ADAPTATION.Production_company, COUNT(*) AS NumberOfAdaptations

FROM FILM_ADAPTATION

GROUP BY FILM_ADAPTATION.Production_company

ORDER BY NumberOfAdaptations DESC;

-- A patron comes in and wants to see what movies we have that are inspired by Sense
and Sensibility and how long the films are.
SELECT RELATED_WORKS.Title, RELATED_WORKS.Year, RELATED_MOVIE.Running_time

FROM RELATED_MOVIE

JOIN RELATED_WORKS USING (WorkID)

JOIN BOOK USING (BookID)

WHERE BOOK.Title = 'Sense and Sensibility';

-- A patron comes in and wants to know what actresses portray roles inspired by
Elizabeth Bennet from Pride and Prejudice in related movies.
SELECT PERSON.First_Name, PERSON.Last_Name, RELATED_WORKS.Title

FROM CHARACTERS JOIN PORTRAYS USING (CharacterID)

JOIN PERSON USING (PersonID)

JOIN RELATED_MOVIE_INVOLVEMENT USING (PersonID)

JOIN RELATED_WORKS USING (WorkID)

WHERE CHARACTERS.First_Name = 'Elizabeth' AND CHARACTERS.Last_Name=
'Bennet'

ORDER BY Title;

Wells and Stitt 6


-- A patron comes in and wants to know what longer than average miniseries we have
(he has a lot of free time and wants to fill it).
SELECT ADAPTED_MINISERIES.Number_of_episodes, FILM_ADAPTATION.Title,
FILM_ADAPTATION.Year

FROM FILM_ADAPTATION JOIN ADAPTED_MINISERIES ON
(FILM_ADAPTATION.AdaptationID=ADAPTED_MINISERIES.AdaptionID)

WHERE ADAPTED_MINISERIES.Number_of_episodes >


(SELECT AVG(Number_of_episodes)



FROM ADAPTED_MINISERIES)

ORDER BY Number_of_episodes;

-- A patron comes in and has read the title 'No Love for Northanger'. Because of this, she
wants to know what books the in-house publisher, Stittwell Inc., has published (we only
publish works inspired by Jane Austen).
SELECT RELATED_WORKS.Title,RELATED_WORKS.Year,RELATED_BOOK.Author

FROM RELATED_WORKS JOIN RELATED_BOOK USING (WorkID)

WHERE Publisher='Stittwell Inc.'

ORDER BY Year;

























Wells and Stitt 7

You might also like