Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Intro to database systems: (25 points) Question2. Consider a database to store information for a social network website. The features and constrains of database are
Intro to database systems:
(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 has only one user that moderates the group A user must be a member of at least one group, and groups may contain zero or more members * 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. . Photos are a type of media file, but also have the encoding (e.g., JPEG) and the size of the photo and the bitrate of the video A media file may belong to at most one album. * Videos are a type of media file, but also have the codec (e.g., MPEG), the length, * 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. group id name Group moderates member of User user id age phone # owns Album name contains URL Media date added Photo Video codec length encoding size
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started