PART 1 The goal of this assignment is to design a conceptual schema using the (E)ER Data model. (E)ER data model Design a schema that incorporates the specification described below as efficiently as possible. You should submit a written diagram of your schema design using the notation given in the class. In this diagram, indicate all the classes, subclasses, relationships (weak & strong), relationship cardinalities and degrees, total participations, attributes, and primary keys. In addition, specify whether each attribute is single-valued or multi-valued, stored or derived, and atomic or composite. In your design, you can make and state reasonable assumptions if they are not specified in the specification. Design Specification Yelp is a local business directory service and review site with social networking features. It allows users to give ratings and review businesses. You are going to design the database system for Yelp (www.yelp.com). It should store and manage the following information but it is not exactly same as real Yelp website. However, if you have ambiguous parts you can assume data type based on real Yelp system: Yelp User A Yelp user has a unique yelp ID, first name, last name, gender, birthdate, birthplace, age, email, a profile picture, and list of friend ids. Yelp users can be complimented by their friends. A Yelp user can rate any business on a scale of 1-5 and provide reviews. A user has an " Activity Wall" where 10 most recent Yelp reviews by user's friends are posted on the wall when the user “follows” her friend’s activities. In addition, the user can checkin to a particular business. Reviews Review has an ID, publish date, and textual content where the content can be text, photo, or a short video. It has one author and belongs to one business. Also a review has number of stars and number of total votes. Votes can be categorized as useful and non-useful with a list of users that voted for each of these categories. Moreover, a review has a list of comments where each comment has an author, textual content, and date. Business A business has an ID, address (street, state, zip code, latitude, longitude), number of reviews, and stars. Also each business has hours and days of operation. Other attributes of business include parking type (street, garage, lot, or valet), and ambient type (romantic, classy, touristy, or casual). A business maintains a list of checkin IDs. A review is belonged to a business. Business Category Each business has one category. Business category has an ID, name, and a list of subcategories. Some categories and their subcategories are as follow:     • Health & Medical: Dentists, Optometrists, Hospital, Doctors, Physical Therapy, and Allergists • Restaurants: Bars, Sandwiches, Diners, Burgers, Pizza, Seafood, and Salad • Hotels & Travel: Bed & Breakfast, Event Planning & Services, and Car Rentals • Shopping: Flowers & Gifts, Art Supplies, Hardware Stores, Drugstores, Convenience Stores, Department Stores, Home Services, Outlet Stores, and Florists • Food: Bakeries, Coffee & Tea, Grocery, and Food Delivery Services • Beauty & Spas: Cosmetics & Beauty Supply, and Fashion • Fitness & Instruction: Active Life, Gyms, Weight Loss Centers, Trainers, Pilates, and Nutritionists • Education: Colleges & Universities, Middle Schools & High Schools, Adult Schools, Specialty Schools, Dance Studios, Preschools, Child Care & Day Care. You may choose only two of the above categories and their corresponding subcategories for demonstration purposes. Photo A Photo has a unique ID, an author, a description, location, and a list of users who “liked” the photo. Each photo is either a business photo or a personal photo. A business photo is only visible to a user who checked into that particular business. A business photo is belonged to a business. Checkin A checkin has an ID and checkin info. A checkin is belonged to a business. A user can checkin to a business multiple times. PART 2 Map the (E)ER diagram into the Relational model Convert your (E)ER conceptual schema from Part 1 into relational database schema. Be certain to indicate primary keys and referential integrity constraints Please follow the relation schema format discussed in Lecture 4: ER to Relational mapping. Example: Student Taking Course Now, mapping the above ER to relational schema would look like the following. Primary Keys and Foreign Keys are marked as shown. Part 3 Convert your relation schema from Part 2 into Relations/tables and write appropriate SQL DDL CREATE TABLE statements. Be sure to indicate: • Primary Keys and table constraints where required • Use REFERENCE for foreign keys and specify update and/or delete actions for the referenced tuple/row (i.e., cascade, reject, or set default/null). Install the latest version of MySQL Community edition from (https://dev.mysql.com/) to test your SQL statements.

Database Systems: Design, Implementation, & Management
11th Edition
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Chapter2: Data Models
Section: Chapter Questions
Problem 3P
icon
Related questions
Question

PART 1
The goal of this assignment is to design a conceptual schema using the (E)ER Data model.
(E)ER data model
Design a schema that incorporates the specification described below as efficiently as possible.
You should submit a written diagram of your schema design using the notation given in the
class. In this diagram, indicate all the classes, subclasses, relationships (weak & strong),
relationship cardinalities and degrees, total participations, attributes, and primary keys. In
addition, specify whether each attribute is single-valued or multi-valued, stored or derived, and
atomic or composite. In your design, you can make and state reasonable assumptions if they are
not specified in the specification.
Design Specification
Yelp is a local business directory service and review site with social networking features. It
allows users to give ratings and review businesses. You are going to design the database system
for Yelp (www.yelp.com). It should store and manage the following information but it is not
exactly same as real Yelp website. However, if you have ambiguous parts you can assume data
type based on real Yelp system:
Yelp User
A Yelp user has a unique yelp ID, first name, last name, gender, birthdate, birthplace, age, email,
a profile picture, and list of friend ids. Yelp users can be complimented by their friends. A Yelp
user can rate any business on a scale of 1-5 and provide reviews. A user has an " Activity Wall"
where 10 most recent Yelp reviews by user's friends are posted on the wall when the user
“follows” her friend’s activities. In addition, the user can checkin to a particular business.
Reviews
Review has an ID, publish date, and textual content where the content can be text, photo, or a short
video. It has one author and belongs to one business. Also a review has number of stars and number of
total votes. Votes can be categorized as useful and non-useful with a list of users that voted for each of
these categories. Moreover, a review has a list of comments where each comment has an author, textual
content, and date.
Business
A business has an ID, address (street, state, zip code, latitude, longitude), number of reviews, and
stars. Also each business has hours and days of operation. Other attributes of business include
parking type (street, garage, lot, or valet), and ambient type (romantic, classy, touristy, or
casual). A business maintains a list of checkin IDs. A review is belonged to a business.
Business Category
Each business has one category. Business category has an ID, name, and a list of subcategories.
Some categories and their subcategories are as follow:

 

 

• Health & Medical: Dentists, Optometrists, Hospital, Doctors, Physical Therapy, and
Allergists
• Restaurants: Bars, Sandwiches, Diners, Burgers, Pizza, Seafood, and Salad
• Hotels & Travel: Bed & Breakfast, Event Planning & Services, and Car Rentals
• Shopping: Flowers & Gifts, Art Supplies, Hardware Stores, Drugstores, Convenience Stores,
Department Stores, Home Services, Outlet Stores, and Florists
• Food: Bakeries, Coffee & Tea, Grocery, and Food Delivery Services
• Beauty & Spas: Cosmetics & Beauty Supply, and Fashion
• Fitness & Instruction: Active Life, Gyms, Weight Loss Centers, Trainers, Pilates, and
Nutritionists
• Education: Colleges & Universities, Middle Schools & High Schools, Adult Schools,
Specialty Schools, Dance Studios, Preschools, Child Care & Day Care.
You may choose only two of the above categories and their corresponding subcategories for
demonstration purposes.
Photo
A Photo has a unique ID, an author, a description, location, and a list of users who “liked” the
photo. Each photo is either a business photo or a personal photo. A business photo is only visible to a
user who checked into that particular business. A business photo is belonged to a business.
Checkin
A checkin has an ID and checkin info. A checkin is belonged to a business. A user can checkin
to a business multiple times.

PART 2

Map the (E)ER diagram into the Relational model
Convert your (E)ER conceptual schema from Part 1 into relational database schema. Be certain to
indicate primary keys and referential integrity constraints
Please follow the relation schema format discussed in Lecture 4: ER to Relational mapping.
Example: Student Taking Course
Now, mapping the above ER to relational schema would look like the following. Primary Keys
and Foreign Keys are marked as shown.

Part 3
Convert your relation schema from Part 2 into Relations/tables and write appropriate SQL DDL CREATE
TABLE statements. Be sure to indicate:
• Primary Keys and table constraints where required
• Use REFERENCE for foreign keys and specify update and/or delete actions for the
referenced tuple/row (i.e., cascade, reject, or set default/null).
Install the latest version of MySQL Community edition from (https://dev.mysql.com/) to test your SQL
statements.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Requirement Analysis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning