Question 1 :Draw an ERD for the following problem with attributes, primary keys, cardinalities and participation constraints and specialization, if appropriate.
An information studies student wants to keep track of the following information. A publishers publishes two kinds of publications: books and journals. Any one publisher publishes at least one book and/or at least one journal. Each book can be written by one or more authors and one author can write one or more books. Each book and journal is characterized by one or more indexed keywords, which are represented by a keyword number and keyword. Not every keyword is used by the journals, however. Both books and journals have a unique number (such as ISBN# for a book and ISSN# for a journal), title and a publisher. For books, the student tracks the published year, all author information and their institutions. For journals, the student keeps the starting year first published, the number of issues to be published per year and the category of the journal (such as academic, newsletter, trade). Each publisher has name, address and phone. Each author has an ID number, name, address, phone, author’s affiliated institution and the address of the institution. An author may be affiliated with more than one institution. The student would like to keep only authors who are participating in writing at least one book and institutions that have such authors.
(15 Pts)
The second one is draw a new ERD chart copying this picture
Q 3
5. Design an ER schema with attributes, primary keys, cardinalities and participation constraints if appropriate.
For keeping track of information about votes taken in the U.S. House of Representatives during the current two-year
congressional session. The database needs to keep track of each U.S. STATE’S Name (e.g., Texas, New York,
California) and include the Region of the state (whose domain is {North-east, Midwest, South-east, Southwest,
West}). Each CONGRESSPERSON in the House of Representatives is described by his or her name, plus the
District represented, the StartDate, when the congressperson was first elected, and the political party to which he
or she belongs (whose domain is {Republican, Democrat, Independent, Other}). The database keeps track of each
BILL (i.e., proposed law), including the BillName, the DateOfVote on the bill, whether the bill PassedOrFailed
(whose domain is {Yes, No}, and the Sponsor (the congressperson(s) who sponsored-that is , proposed-the bill).
The database keeps track of how each congressperson voted on each bill (domain of vote attribute is {Yes, No,
Abstain, Absent}). Draw an ER schema diagram for this application. State clearly any assumptions you make.
(10 Points)