Access Millions of academic & study documents

Database

Content type
User Generated
Subject
Computer Science
School
ST Xaviers College
Type
Homework
Showing Page:
1/4
HW #1
#1. Design an ER schema 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., ‘Illinois’, ‘Texas’, ‘New York’) and include the
Region of the state (whose domain in {‘Northeast’, ‘Midwest’, ‘Southeast’, ‘Southwest’,
‘West’}). Each CONGRESS_PERSON in the House of Representatives is described by his or
her name, plus the District represented, the Start_date 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 Bill_name, the Date_of_vote on the bill, whether the bill Passed_or_failed (whose domain is
{‘Yes’, ‘No’}), and the Sponsor (the congressperson(s) who sponsoredthat is, proposedthe
bill). The database also 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.
ER Design
STATES state_name (primary key), region
CONGRESS_PERSON congress_person_id (primary key), state_name (foreign key),
congress_person_name, district_represented, start_date, political_party (it is possible several
congress persons might have the similar name, so a unique congress_person_id will be used as a
primary key)
BILL bill_id (primary key), bill_name, date_of_vote, passed_or_failed, sponsor (congress
person id, foreign key)
(It is possible the same bill might appear several times in the database, so a bill_id will be used
as a primary key)
CONGRESS_PERSON_VOTES congress_person_id (foreign key), bill_id (foreign key), vote

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/4
ER Diagram
#2. A database is being constructed to keep track of the teams and games of a sports league. A
team has a number of players, not all of whom participate in each game.
It is desired to keep track of the players participating in each game for each team, the positions
they played in that game, and the result of the game.
Design an UML diagram for this application, stating any assumptions you make. Choose your
favorite sport (soccer, football, baseball ...).

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/4

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 4 pages?
Access Now
Unformatted Attachment Preview
HW #1 #1. Design an ER schema 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., ‘Illinois’, ‘Texas’, ‘New York’) and include the Region of the state (whose domain in {‘Northeast’, ‘Midwest’, ‘Southeast’, ‘Southwest’, ‘West’}). Each CONGRESS_PERSON in the House of Representatives is described by his or her name, plus the District represented, the Start_date 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 Bill_name, the Date_of_vote on the bill, whether the bill Passed_or_failed (whose domain is {‘Yes’, ‘No’}), and the Sponsor (the congressperson(s) who sponsored—that is, proposed—the bill). The database also 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 app ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4