Questions tagged [erd]

Entity Relationship Diagram

An Entity Relationship Diagram (ERD) or Entity Relationship Model is a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems.

ERDs can be used to depict two different kinds of models that are closely related, but different in intent. One kind is an analysis model of the subject matter. This model breaks the subject matter down into entities and relationships among entities. Subject matter entities are just subject matter objects by a different name, except that in data analysis, we aren't trying to model the behavior of these objects or entities. Values to be stored in the database can be grouped into attributes, and attributes can be connected to entities and relationships that the attributes describe. This is the ER model as originally developed, and the intent is to describe the problem, not the solution.

Another kind of ERDs is a depiction of the table design of a relational model. This relational model will be eventually fleshed out with physical details, finally resulting in a construction plan for the database itself. While table design is very closely related to ER modeling, it isn't exactly the same thing. for example, normalization is relevant to table design, but not to requirements analysis.

While an ERD can be used for either one of these two purposes, it's useful to decide which of the two purposes one is pursuing before starting in on a diagram.

397 questions
31
votes
10 answers

What is an effective way of labeling columns in a database?

I used to label columns in my databases like this: user_id user_name user_password_hash To avoid conflicts when joining two tables, but then I learnt some more on how to alias tables, and I stopped doing this. What is an effective way of labeling…
Thomas O
  • 511
  • 5
  • 8
21
votes
2 answers

Implementation of a many-to-many relationship with total participation constraints in SQL

How should I implement in SQL the scenario depicted in the following Entity-Relationship diagram? As it is shown, every A entity type occurrence must be related to at least one B counterpart (indicated by the double connecting lines), and vice…
John
  • 375
  • 1
  • 2
  • 7
16
votes
1 answer

How do you represent VIEWS in an ERD?

Are VIEWS (CREATE VIEW) represented in an ERD? If so, how do you represent them and specify what tables they came from?
leeand00
  • 1,722
  • 6
  • 20
  • 36
15
votes
3 answers

Modeling a scenario in which each Music Artist is either a Group or a Solo Performer

I have to design an entity-relationship diagram (ERD) for a business context that involves the delineation of music artists, as I will detail below. Scenario description An Artist has a Name, and must be either a Group or a Solo Performer (but not…
14
votes
2 answers

Best data modelling approach to handle redundant foreign keys in a database about Surveys, Questions and Responses

I am looking for advice on the best relational modelling approach to store surveys, questions, and responses. I am looking for which of the two approaches below looks best, or an alternative approach to either. I have at least these…
deadcode
  • 295
  • 3
  • 6
13
votes
2 answers

How to structure a model to properly and efficiently represent tree-like data on relational databases?

Based on Traversing tree-like data in a relational database using SQL question, I would like to know how the way regularly used to describe tree-like data on relational databases considering physical implications? I'm assuming that the RDBMS has not…
Maniero
  • 2,758
  • 6
  • 28
  • 29
12
votes
3 answers

What do the entity-relationship diagram (ERD) symbols used in DBeaver mean?

I don't understand the ERDs used by DBeaver. The diamonds and dots at the ends of the line arent the crow's foot I'm used to. I've googled the subject and checked the docs but can't find a straight-forward answer. Is there a reference for the style…
Dawoodjee
  • 498
  • 1
  • 4
  • 12
11
votes
1 answer

How are indexes represented in an ERD?

What do indexes look like in an Entity Relationship Diagram? I've googled it and I'm unsure what the standard look of an index is in an ERD. And I'm talking about the crowsfoot diagram that includes all of the fields.
leeand00
  • 1,722
  • 6
  • 20
  • 36
11
votes
2 answers

Conceptual ERD Multi-table many to many, or possibly recursive?

I'm creating a conceptual diagram [yes, I know I've included attributes and keys - but this is just for me to consolidate what I'm doing whilst learning] -- so please treat it as Conceptual with the focus on Relationships and tables and not how to…
MVC Newbie
  • 213
  • 2
  • 6
10
votes
5 answers

Importance of ER Diagrams

I am a student and I am developing several projects as a part of my academia. While developing the database for one of the projects, we came across a situation where we thought about whether ERD is necessary or not. Right now, not every one of us…
Ankur Trapasiya
  • 305
  • 1
  • 3
  • 13
9
votes
0 answers

Working on a decision tree database design

I'm doing the conceptual model for a Decision tree database. The goal is store any Decision tree. I have four entity types: DecisionTree, Node, Branch and Leaf. Each Decision tree is composed of Decision node(s), Branch(es) and Leaves. Each…
Amater90
  • 91
  • 1
  • 3
9
votes
1 answer

How can I import the contents of an Oracle database into Visio to create an Entity Relationship Diagram?

I have an Oracle database, and I would like to create an ERD in Visio 2007 Pro. I have so far looked at DBMS_METADATA.GET_DDL commands to generate DDL. I know that I can import an Access DB into Visio, but it seems that Access understands an SQL…
kg.
9
votes
4 answers

In a one-to-one relationship, where should the foreign key be placed?

I am currently designing an ERD for a project management system. I am unable to choose between two workable solutions as the best solution as I wish to embrace the best standards. The two entities that can access the system are the clients and…
Xegara
  • 249
  • 1
  • 2
  • 9
9
votes
2 answers

Is it OK to have an entity in an ER diagram without a relationship?

I'm creating an ER diagram for a class assignment and I was wondering if it would be possible to create an entity that had no direct relationship to any other entity, and simply use foreign keys to connect them. The diagram below illustrates what…
user819
8
votes
1 answer

Ternary relationship: what's the difference between having single table and having multiple tables?

Consider the following ternary relationship: Suppose that all entities have only two attributes (PK and Name). Here are the tables I derived (5 tables): Sector ------------------------- ID_Sector …
feelthhis
  • 265
  • 1
  • 3
  • 10
1
2 3
26 27