Questions tagged [erd]

Entity Relationship Diagram (ERD) or Entity Relationship Model is a visual representation of the organization of data within databases or information systems

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.

1159 questions
5
votes
1 answer

Is there a way to generate a map of the existing tables and their relationships to each other?

Access has something like this where you view all the relationships between the existing tables, displayed as lines connecting them: keys, 1 to many, etc. I can't find anything in ss2008 - I'm very new to it on top of that. Any help would be…
Yatrix
  • 13,361
  • 16
  • 48
  • 78
5
votes
1 answer

How to show composite keys in Chen E-R Diagram

How to show composite keys in Chen E-R Diagram? I have not used this notation and I really don't like it. Any references would suffice, as I have excellent understanding of data modeling concepts (what a brag!). Note: I am aware of the symbol for…
NoChance
  • 5,632
  • 4
  • 31
  • 45
5
votes
1 answer

How to export/save ERD as PDF or as image in phpMyAdmin?

I have generated an ERD using the Designer in phpMyAdmin. How do I save it as PDF or image? On possible duplicate: The "original" thread is referenced in the answer. This post is intended to be a visual tutorial thread with screenshots which the…
k_rollo
  • 5,304
  • 16
  • 63
  • 95
5
votes
1 answer

Is there a way to model table inheritance using MySQL Workbench?

Is there a way to model table inheritance using MySQL Workbench? I'd like the ERD to look similar to the left side of this image:
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
5
votes
2 answers

How to handle an "OR" relationship in an ERD (table) design?

I'm designing a small database for a personal project, and one of the tables, call it table C, needs to have a foreign key to one of two tables, call them A and B, differing by entry. What's the best way to implement this? Ideas so far: Create the…
C. Ross
  • 31,137
  • 42
  • 147
  • 238
5
votes
5 answers

Data Model tools for DB2

I have created a Database in DB2 and tables with relationships. I would like to create a ER diagram based on my database design in DB2. MS SQL has a facility to create ER diagrams from DB schema, but DB2 doesn't seem to have one, at least to my…
Shaw
  • 1,484
  • 4
  • 20
  • 31
4
votes
2 answers

How should I design the database for Django?

I like to use a GUI application to design databases using ERD. Currently I am using the EER Diagram of the free MySQLWorkbench. Once I like the way the ERD looks, I Forward Engineer the ERD in MySQLWorkbench to create the actual database. Then I…
hobbes3
  • 28,078
  • 24
  • 87
  • 116
4
votes
1 answer

PGAdmin create ERD from explicitly selected tables?

I have the ability to generate an ERD from an entire DB. My DB is huge and I want to focus on a subset of table relationships. Is this supported in PGAdmin? Additionally, if it isn't is there a free/open-source tool that does support this?
user38643
  • 341
  • 1
  • 7
4
votes
2 answers

Confused on the difference between One, and One and Only One in ERDs

Sorry for the links I'm new! I'm confused on the difference between one and one and only one and where they would be used. I just started the class so I apologize if my diagram is wrong as well. Hospital Problem ER Diagram
4
votes
0 answers

ReactJS - Draw an ER diagram with relations from JSON object?

I'm trying to draw an ER diagram from a JSON file with ReactJS. I have a file where I can see tables and relations between them ("relations" in the object). Like a database, with objects. How would I create such an ER diagram or Scheme with ReactJS?…
Mads Frost
  • 105
  • 6
4
votes
1 answer

Storing similar entities in the same table vs in multiple tables in the database

We have 2 entities to represent in the database: - Entity A having attributes (x, y, z, r). - Entity B having attributes (x, y, z, s). The 2 entities have 3 identical attributes, and only 1 different attribute. And although being very similar, they…
David Hanna
  • 41
  • 1
  • 5
4
votes
1 answer

What's diference between entity-relationship and domain-model

According to StackOverflow, an entity-relationship model (ERM) is an abstract and conceptual representation of data, information aspects of a business domain or its process requirements. Ultimately ERM is being implemented in a database. A domain…
David Sousa
  • 120
  • 2
  • 8
4
votes
5 answers

How to represent an SQL query graphically

I have a SQL Select query with many joins between tables, I want to know which kind of diagram could represent it graphically in order to visualise the joins between tables and their types (differentiate between INNERs and LEFTs) ? I did this simple…
Zakaria Belghiti
  • 521
  • 3
  • 8
  • 19
4
votes
0 answers

ERD generator tool for Rails 2.3.2

SA I want and ERD Generator that understands the relations between Rails Models. I found Railroad but did not work with 2.3.2 I found also http://rails-erd.rubyforge.org/ but it is for Rails 3 Any idea?
4
votes
3 answers

Database design - Similar Contact Information for multiple entities

I realise that the answer to these types of questions are often "it depends" but still I wondering what the general consensus might be. I am dealing with multiple entities such as Company Charity Auditor Stocktaker etc etc... Which all have…
Pixelated
  • 1,531
  • 3
  • 15
  • 35