You are on page 1of 2

ID:BCXXXXXXXXX

Question Statement:

Our second assignment is the continuation of the first assignment. In the first assignment an ERD
was required for the given scenario.

The ERD of the first assignment is given below:

You’re required to perform the first task according to above Entity Relationship Diagram.
• Convert the above Entity Relationship Diagram into Relational data model
You have to convert all the components of the ERD into Relational Data model.

Role
Role_id Name

User
User_id N ame

Task
Task_id Title

Thread
Thread_id Title

Message
Msg_id Sender_id Message_body

• Perform the Cartesian product (Task X DiscussionThread) on the following relations:

Task Creation Assigned Thread Thread


Title Dead line
ID Date To ID Name
Computer
T0001 01/01/2019 15/01/2019 User001 Th001 BSCS
Science
Management
T0002 02/02/2019 16/02/2019 User002 Th001 BSCS
Science
T003 Mass 03/03/2019 17/03/2019 User003 Th001 BSCS
Communication
Bio
T004 04/04/2019 20/04/2019 User004 Th001 BSCS
Informatics
Computer
T0001 01/01/2019 15/01/2019 User001 Th002 BBA
Science
Management
T0002 02/02/2019 16/02/2019 User002 Th002 BBA
Science
T0003 Mass 03/03/2019 17/03/2019 User003 Th002 BBA
Communication
Bio
T0004 04/04/2019 20/04/2019 User004 Th002 BBA
Informatics
Computer MSC
T0001 01/01/2019 15/01/2019 User001 Th003
Science Zoology
Management MSC
T0002 02/02/2019 16/02/2019 User002 Th003
Science Zoology
Mass MSC
T0003 03/03/2019 17/03/2019 User003 Th003
Communication Zoology
Bio MSC
T0004 04/04/2019 20/04/2019 User004 Th003
Informatics Zoology

3. Find the degree and cardinality of the relations given in the 2nd question.

Answer:
Task X Discussion Thread has degree six and the number of row is 12.

Important For You – Bookmark This Page http://bit.ly/vucodes (Vu Study Groups By
Subject Codes Wise) in Your Browser for easy access In Future By
https://vustudents.ning.com/

You might also like