/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Problem 40 Develop an ERD to allow us to ke... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Develop an ERD to allow us to keep information on a survey. Suppose a survey will have several questions that can be answered true or false. Over a period of time the survey is conducted and there will be several responses.

Short Answer

Expert verified
The ERD includes three main entities ('Survey', 'Question', 'Response') with their attributes, and the relationships between them. Noting that a 'Survey' consists of many 'Questions', and each 'Question' on a 'Survey’ can have multiple 'Responses' is crucial.

Step by step solution

01

Identify Main Entities

The first step is to determine the main entities of the system based on the problem description. In this case, the main entities are: 'Survey', 'Question', and 'Response'.
02

Identify Attributes

Next, determine the attributes for each entity. For 'Survey': survey ID, date, title could be attributes. For 'Question': question ID, content, survey ID (to indicate which survey the question belongs to) could be its attributes. For 'Response': response ID, respondent ID, survey ID, question ID, answer (True/False) could serve as its attributes.
03

Determine Relationships

Then, the relationships betwen the entities need determination. A 'Survey' consists of multiple 'Questions’, this is reflected as a one-to-many relationship between these entities. A 'Response' is given by a respondent to a 'Question' in a 'Survey', hence it has relationships with both 'Survey' and 'Question'. These are also one-to-many relationships since a single survey/question can have multiple responses.
04

Create ERD

Finally, put all these elements together to create the ERD. Entities are represented as rectangles, attributes as ovals, and relationships as diamonds. Make sure to indincate the type of relationship (one-to-one, one-to-many) with the correct notation.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

Key Concepts

These are the key concepts you need to understand to accurately answer the question.

Database Design
Database design is an important concept when creating an effective system for managing and storing data. It involves organizing and structuring a database in a way that allows for efficient retrieval and use of data. In the context of designing a survey system, database design helps to ensure that all the questions and responses are easily manageable.
The process starts with identifying the main entities that need to be captured in the database. Entities are the key components or objects that have distinct roles in the system. For our survey system, these entities include the 'Survey', 'Question', and 'Response'.
This step is followed by determining how these entities relate to each other through relationships. Relationships show how entities depend on and interact with each other. For example, a survey may contain several questions, therefore, establishing a one-to-many relationship between 'Survey' and 'Question'.
Lastly, we represent these entities and their relationships visually through an Entity-Relationship Diagram (ERD). This aids in visualizing how data will be organized in the database, ensuring every piece fits together seamlessly.
Survey System
A survey system is designed to efficiently manage and execute surveys. It involves not only creating and distributing surveys but also collecting and analyzing responses. The system's database architecture is crucial to its functionality.
Each survey has several questions, and these questions must be structured in a way that ensures respondents can easily provide their answers. The survey entity acts as a container that houses several questions.
  • Survey: Contains metadata like survey ID, title, and date.
  • Question: Needs information such as question ID, content, and often the link to the specific survey it belongs to.
  • Response: Captures respondent input, which includes who they are and their answers to each question.
Understanding the survey system allows for better design in collecting uniform and consistent data, ultimately leading to more reliable data analysis.
Entity Attributes
Entity attributes describe the properties or characteristics of an entity in a database. They are crucial for differentiating each entity and tracking specific data points. In our survey system, attributes are essential for uniquely identifying entities and storing relevant information.
For example, a 'Survey' entity might include attributes like survey ID, which is a unique identifier, and title, which provides a brief description. Similarly, a 'Question' might have attributes such as question ID and content. These attributes enable distinguishing one question from another, even within the same survey.
The 'Response' entity attributes are equally pivotal as they store the respondent's input. A response includes response ID, respondent ID, and the actual answer to each question, such as true or false. Essentially, entity attributes provide the necessary details that ensure each piece of data in the survey system is accurately recorded and accessible.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Consider your educational institution or place of work. 1\. What are some of the entity types that would be useful? 2\. What relationships exist that relate entity types to one another? 3\. What attributes would be useful to describe entities and relationships? 4\. Draw an ERD.

Consider an educational institution that has departments and where each department offers courses. Suppose departments are assigned unique identifiers and so deptCode is a key for the department entity type. Courses are identified within a department by a course number; course numbers are unique within a department but not across departments. So, History may have a course numbered 215, and English could have a course numbered 215 too. In order to identify a particular course we need to know the department and we need to know the course number. Illustrate an ERD including department and course entity types. Include attributes for the Department (department code and department name), and for Course (course number, title, and description).

Develop an ERD to support the management of credit cards. Each credit card has a unique number and has a customer associated with it. A customer may have several credit cards. The customer has a first name, last name, and an address. Each time a customer uses a credit card we must record the time, the date, the vendor, and the amount of money involved.

How would you use a composite attribute to model a phone number.

What problems arise if one makes the supervises relationship mandatory for either the supervising employee or the employee who is supervised?

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.