Questions tagged [entity-relationship]

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.

Entity-relationship modeling is a database modeling method, used to produce a type of conceptual schema or semantic data model of a system, often a relational database, and its requirements in a top-down fashion. Diagrams created by this process are called entity-relationship diagrams, ER diagrams, or ERDs.

The main components of the ER diagrams are the entities and the relationships that exist among them. For example with the original notation, in the relational databases tables are shown as boxes, its attributes as ovals and their relations with other tables with lines.

The three schema approach to software engineering uses three levels of ER models that may be developed:

  • Conceptual data model is the highest ER model, that contain least granular detail but establishes the overall scope of what to be included in the model set.

  • Logical data model contains more detail than the conceptual ER model. Operational and transcational data entities are defined.

  • Physical data model - one or more such models can be developed from each logical ER model. Normally developed to be instantiated as a database, therefore each physical model must contain enough detail to produce a database.

2962 questions
0
votes
1 answer

ER Diagram/Data Modelling question

I wanted to know how to represent a relationship between two entities which means "atleast". Eg- A song must be part of atleast one album. If "A song can be part of one or more than one album" means a one to many relationship between song and album,…
arijeet
  • 1,858
  • 18
  • 26
0
votes
0 answers

How to create relationships between entities

My question is as follows: I am making a simple telegram bot where users can save and learn words in different languages (dictionary).I can't decide what kind of relationship between entities in a spring. I have two entities Word and…
0
votes
1 answer

Relationship into table (ER-model into relational model)

I am trying to transform ER-model to Relational model and then to SQlite3 code. In the ER-model I write the relationship for example: Customer - has - Order (Where Customer and Order are entities. Has is the relationship) I know I need to transform…
cosman
  • 23
  • 5
0
votes
1 answer

How to map ER Diagram of user asking questions and answering scenario?

How to draw the ER diagram of below mentioned scenario? Scenario: Users can asks questions according to subjects they have enrolled, and as well as answer to those questions. So basically Users can ask questions belongs to subjects and Users can…
0
votes
0 answers

ERD to django models ? Many to many relatioship with attribut

How should I translate this Entity Relationship Diagram to Django models ?
Issam dz
  • 1
  • 1
0
votes
0 answers

Login Entity Relation Diagram: Review and Opinions

I've made a try of an ERD, to model a login system to manage employees, accounts, netkeys, usernames and passwords in an enterprise, but I still think something's missing or could be improved. So for this problem consists of linking a certain…
0
votes
1 answer

REST API redundant path parameters

I'm wondering about best practice when designing the URIs for your REST API that contains resources with relationships between them. I have 2 entities; Team and Player, and these URIs: GET /teams <- list teams GET /teams/{id} …
martin
  • 1,894
  • 4
  • 37
  • 69
0
votes
0 answers

Two multivalued attributes in one entity

I am trying to create an entity (order) with a primary key: order ID. Foreign Key: customer ID, and with two multivalued attributes, Product ID and Quantity. Because an order may have multiple products, and each product has specific quantity. The…
Ahmeed00
  • 3
  • 3
0
votes
0 answers

Navicat's import of an entity diagram from a remote database causes the program to hang up

Navicat Version:Premium 16 Mysql Version:5.6.16-log The program always stays on this page Trying to stop won't work But, I don't have this problem importing local tables. Any help would be highly appreciated. Thanks in advance.
Robot
  • 1
  • 1
0
votes
1 answer

Clarity on ERD diagram

I am trying to understand ERD diagrams. Searching for information, I came across the two following images on google. It is not clear to me which kind is actually the real ERD diagram: Diagram 1: Diagram 2: The second one is from a question on…
0
votes
0 answers

Hibernate ManyToMany cascade saving objects

I am trying to understand the principles of ManyToMany relations in Hibernate. I've created a small test project and the question is: I want "Managers" to be saving in db when the "User" is saving. So Manager entity is dependent on User. When I am…
0
votes
2 answers

inserting multiple values into one row mySQL

How can i insert multiple values into one row? My query insert into table_RekamMedis values ('RM001', '1999-05-01', 'D01', 'Dr Zurmaini', 'S11', 'Tropicana', 'B01', 'Sulfa', '3dd1'); i cant insert two values into one row. is there another way to…
Dwi Fajar
  • 13
  • 1
0
votes
0 answers

How to manage Redis relations

The situation might be a bit complex, let's say I have a shopping cart related to items (items has some other relations with other entities) in a relational DB, it does not have any problem of query the shopping cart with all the other related…
Chun Young
  • 83
  • 6
0
votes
1 answer

Pseudocode system that connects Humans, Devices, and Remote Control

In one scenario, the problem is solved by making pseudocode or actual code that shows a connection between Humans, Devices, and Remote Control. I'm thinking about doing the ER diagram first and then making it on OOP based. I'm not actually sure what…
0
votes
0 answers

ER diagram with Blockchain

Can we draw ER diagram for blockchain related projects? Some resources says that "Since blockchain is like a database, we could try to model it focusing on its data. Therefore, we can specify the data in a BOS using an ER model for the conceptual…