Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Convert a ER model into a relational database schema expressed in SQL DDL, with appropriate constraints. Use Create Table Command Discussions and Comments The following

Convert a ER model into a relational database schema expressed in SQL DDL, with appropriate constraints.

Use Create Table Command

Discussions and Comments

The following diagram shows entities, attributes and relationships for the discussions and comments in the pics.net site.

image text in transcribed

Comments on Discussions:

discussions are essentially holders for collections of comments

each discussion has an identifying numeric ID and may have a title (up to 50 chars)

a discussion contains one or more comments and is created when the first comment is posted

a collection of comments on one photo needs no title; the discussion is associated with the photo being commented on

discussions under a group will have a title and will be associated the group

Comments on Comments:

comments are messages posted by users as part of a discussion

each comment has an identifying numeric ID

the system time-stamps each comment with the precise posting date and time

the content of a comment is an arbitrary text string

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How to identify your audience.

Answered: 1 week ago

Question

Discuss communication challenges in a global environment.

Answered: 1 week ago