Question: (25 points) Question2. Consider a database to store information for a social network website. The features and constrains of database are described below Every user


(25 points) Question2. Consider a database to store information for a social network website. The features and constrains of database are described below Every user has a unique user ID, full name, age, and phone number Every group has a unique group ID and a name Every group must have at least one user that moderates the group A user may be a member of zero or more groups, and groups may contain zero or more members. Groups may contain one or more moderators. . Users can create zero or more albums An album has a unique album ID, a creation date, and a name An album is owned by exactly one user An album can contain zero or more media files Every media file, has a unique URL, a date, and a caption. Users can add zero or more photos to albums Photos are a type of media file, but also have the encoding (e.g., JPEG) and the size of the photo Users may add zero or more videos to albums. Videos are a type of media file, but also have the codec (e.g., MPEG), the length, and the bitrate of the video A media file may belong to at most one album The Entity-Relationship Diagram of the database is shown in Figure 1. This diagram is not complete and has some mistakes. You need to find and correct any mistakes (i.e., missing key for an entity, wrong line type, missing an attribute, missing a relationship) in the given ER diagram. Draw a complete and correct diagram
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
