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
12
votes
1 answer

What do the mysql workbench column icons mean in ER Diagram?

Can any one help me in explaining about the icons in the ER Diagram of Database created in MySQL Workbench. Blue Diamond (Filled); Blue Diamond (unfilled); Red Diamond, et cetera; Thanks!
danyal1990
  • 133
  • 2
  • 2
  • 9
12
votes
3 answers

How to decide whether to use ER or UML for modelling?

A UML diagram can be used both to model database designs and class designs, but an ER diagram should be used exclusively in database problems. How do you pick one graphical representation over the other?
stallion
  • 1,901
  • 9
  • 33
  • 52
11
votes
2 answers

One to many relationship on the same table

Here is the situation:- I have a table called Users. This contains user data for students and tutors as most of the data required is the same. Having completed the system I am now told that the client would like to be able to assign students to…
Phill
  • 213
  • 1
  • 2
  • 9
10
votes
3 answers

How represent multiple similar foreign keys in ERD database diagram?

I'm making an ERD of my database, and am stuck with a little dilemma. Consider the tables foo and bar. foo has three columns that are foreign keys, referencing to bar's primary key. My question is: in the ERD do I represent this with just one line…
Neko
  • 3,550
  • 7
  • 28
  • 34
10
votes
3 answers

Saving diagram failed! Verify that Graphviz is installed and in your path, or use filetype=dot

When I run rake db:migrate I get this error rake aborted! Saving diagram failed! Verify that Graphviz is installed and in your path, or use filetype=dot. Full log: rake db:migrate Loading application environment... Loading code in search of Active…
user1670773
10
votes
2 answers

MySQL Workbench - Rearranging Schema Diagram - Autolayout not working

I am using MySQl Work-bench 2 to construct a schema diagram., by reverse engineering the database. However, when I included 450 tables., the tables are getting overlapped with one another and its practically impossible for me., to rearrange because…
Muthu Ganapathy Nathan
  • 3,199
  • 16
  • 47
  • 77
9
votes
2 answers

Use Draw.io to generate SQL / DDL scripts?

There are a lot of resources on internet about how to import tables into ER diagram on Draw.io using sql script. For example here (but I find plenty of resources…
Falco
  • 1,458
  • 3
  • 19
  • 47
9
votes
1 answer

TypeORM: how to implement bidirectional relationship, multiple fields --> one entity type

I've created a 'document' entity: e.g. @Entity() export class Document { @PrimaryGeneratedColumn() id: number; @Column() name: string; @Column() path: string; ... } Multiple documents can be related to different entity types:…
baku
  • 765
  • 8
  • 22
9
votes
2 answers

How to Draw UML Diagram for NoSql Like MongoDB?

I would like to know that can i draw UML diagrams for my web application which has back end Mongodb? Or is there any other diagrams for NoSql?
nilay joshi
  • 109
  • 1
  • 1
  • 3
9
votes
1 answer

Modeling 3 entities with relationships

Say we have three entities in our environment, Teacher, Student and Course. Every teacher has (teaches) 1 or more Courses and each Course is offered by 0 or more teachers Every Student has taken 1 or more Courses and each Course is taken by 0 or…
Ashkan
  • 3,322
  • 4
  • 36
  • 47
8
votes
5 answers

How to present a database design?

I am doing a project in the university and it includes a MySQL database. I have a design for the database in terms of a list of tables and their respective fields. In what form should I present this design? Just the list of tables and content? In…
Amir Rachum
  • 76,817
  • 74
  • 166
  • 248
8
votes
2 answers

Database design normalization help needed (5nf)

Can you guys show me how to get this ERD in 5th normal form? We did a class assignment yesterday where we had a real client come in and explain to us his need my group came up with this model I am trying to take it a step further and see if I can…
Michael Quiles
  • 1,131
  • 3
  • 24
  • 41
8
votes
7 answers

Open source ER diagramming tool for mysql

I want to reverse engineer (import into diagram form) the database definition dump of a database I have, then since no foreign keys are defined in this particular database, I want to be able to manually create the table to table key mappings (using…
Zak
  • 24,947
  • 11
  • 38
  • 68
8
votes
2 answers

Avoid Circular Dependency

I am developing a travel management application. The design in question is something like following : Each person in a tour is designated as a Traveler. Each Traveler has a Passport. Now, a Traveler can be a MainMember or a SubMember, depending on…
7
votes
3 answers

How to model cities with aliases in MySQL

A given location (city), can have a name and also other aliases by which it can be known. I need to model this in a database. Search can be executed using either city or any of its alias: For e.g. City: name: Los Angeles alias: LA When specifying…
brainydexter
  • 19,826
  • 28
  • 77
  • 115
1 2
3
77 78