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
0 answers

How to map data between two Excel sheets and represent the data in another file

I have two Excel files that look like this: Asset table has firm's Id as a foreign key column, both tables have a many-to-many relationship. Where many asset class name can have zero or many firm's id connected to it And many firm's id can have…
0
votes
1 answer

Cardinality in ER Diagram / 1 to many

I'm trying to create my first ER diagram but I am confused what type of cardinality I should use. The entities are: Order and Product The assumption is that each order can include one or many products Should the cardinality between order and product…
MartinLo
  • 1
  • 1
0
votes
1 answer

ER diagram Relationship among tables

My question is related to the ER-diagram I designed using Oracle SQL developer. I designed this ER-diagram but I don't know how to read the relationships between these tables. I have created this ER diagram: ER Diagram As it can be seen that these…
0
votes
0 answers

How to draw ER-diagram from this sheet

Asset management How to draw ER-diagram from this given sheet.
Rizvi
  • 1
  • 1
0
votes
0 answers

insert values into normalised tables

Id like to insert the data below into the tables. In this case a CarManager can have N CarType which itself have NCarBrand. Is it possible to insert the green and blue data while having the usual FK/PK relationship without having to insert…
notRelevant
  • 43
  • 2
  • 7
0
votes
2 answers

Creating SQL Tables for a Game's Leaderboard

Newbie here having trouble wiring up some tables for a game's leaderboard. Would appreciate help! I have 3 tables; here's an ER diagram: ┌─────┐ ┌─────┐ │ IPs ├─||─────────────────|<─┤Names│ └──┬──┘ …
BYTEWIFE
  • 15
  • 3
0
votes
0 answers

Intellij issue with spring boot jpa-hibernate project, change in model class properties needs a complete mvn clean install

I am struggling with an issue in Intellij where I have a Spring Boot JPA-Hibernate project and have a model class TransitDeclaration which has @OneToOne mapping with another entity Consignment, I have other entities there in the project as well like…
0
votes
0 answers

Java springboot - Best way to structure my Object relationships for performance?

I am using SQL & Java Springboot. In my design, content is stored in modules & content have quite a few different variations. Content can only be designated to a single module, once content is created it cannot updated to another module because…
ABpositive
  • 291
  • 1
  • 18
0
votes
0 answers

Need to extract Java classes from Oracle SQL Developer Data Modeler model

I have a couple of pretty complex Logical Models in Oracle's Data Modeler (each one has a .dmd file and its corresponding folder structure) and I need to create POJOs from those entities. I could go entity by entity and code the classes by hand but…
0
votes
1 answer

How to use ManyToMany relations to track user membership?

What kind of relations is required to store user's membership in multiple groups to be able to recover: history of user participation in some groups (date joined, date quit) list of current user groups (in join order) to determine his current…
kagali-san
  • 2,964
  • 7
  • 48
  • 87
0
votes
0 answers

How to make an ER Digram show joins

Let’s say I have two tables table 1 has columns name, date of birth, zip code, "random stuff" Table 2 has 3 columns. Income, "random stuff", education. If we just do an inner join we would could do Select * From table 1 Join Table 2 USING (random…
learner
  • 1
  • 2
0
votes
0 answers

Is there any standard for the "entity relationship model"

I've been wondering if there is any standard for the "entity relationship model". A lot of well known books that I've read are missing some scenarios that can happen. here are some scenarios.. I've not found book that says anything about whether or…
AngryJohn
  • 576
  • 4
  • 10
0
votes
0 answers

does a total participation constraint also inherited by lower-level entities set in ER Diagram?

I've been reading the book "Database System Concepts Seventh Edition". and the author says A lower-level entity set (or subclass) also inherits participation in the relationship sets in which its higher-level entity (or superclass)…
AngryJohn
  • 576
  • 4
  • 10
0
votes
1 answer

Get count of objects with specific relationship

I have to entity, A and B (A <<---> B) so an A object can have one B object and a B object can have more than one A object (Correct me if I'm wrong, I'm new to core data relationships). Now, I want to know how many A objects are in a B object. For…
matteodv
  • 3,992
  • 5
  • 39
  • 73
0
votes
1 answer

How create identifying and non identifying relationship in Django

Please somebody can teachme how create identifying and non identifying relationship in Django, similar the image for reference. Thank you. Image for reference. https://i.stack.imgur.com/ai8HP.jpg
1 2 3
99
100