Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Requirement In this database, you have the following information: A user has a unique ID, name and yelping_since (when the user joined Yelp, formatted like
Requirement
In this database, you have the following information:
- A user has a unique ID, name and yelping_since (when the user joined Yelp, formatted like YYYY-MM-DD)
- A business has a unique id, name. A business has at least one category. A business might have some photos of its food and environment.
- A category has a unique id and name. There are many categories: Mexican food, Burgers, Chinese food and so on (see full categories https://www.yelpblog.com/2018/01/yelp_category_list#section2)
- A photo has a unique id, caption, and an PNG image.
- A user can give a review to a business. Each review consists of a 5-star scale (1-5) rating and a textual description. For instance, User (ID 4) gave 4 stars to a restaurant Taco bell and said, Great place to hang out after work, the prices are decent. A user can only review a business once. The database needs to store each review operation: who gave such a review to whom, when.
- A user can write a tip to a business (similar to tag). A user can give tips to a business multiple time. Each tip consists of a short phrase. For instance, User (ID 20) gave long waiting time tip to a restaurant Pita Jungle. Two days later, he added a new tip secret menu to the same restaurant. The database needs to store each tip operation: who gave such a tip to whom, when.
Additional Information:
- Please pay attention to attribute names and corresponding notations for every attribute E.g., the Primary key must have an underline.
- Identify participation constraints as per the given instructions.
- Naming configuration for entity set (Users, Business etc), relationship set and attributes is flexible as long as they fulfill the requirements and make sense. Identify entity, relationship and attributes as per the instructions.
- Read requirements carefully to understand the differentiation in binary and ternary relationship
- The points will be deducted if you miss any notation (e.g., primary key, total participation etc.) related to ER diagram.
- Try to stick to the given information in the Requirement section as much as possible.
- You are free to use any software, such as PowerPoint, to draw figures if you follow the format we discussed in class. Do not submit handwritten/hand-drawn assignments.
- You can find some helpful explanations from Yelp official doc (Links to an external site.), but you need to follow the instruction of this assignment.
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