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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

How can I create two one-to-many relationships between two tables with the same Primary Key in Power BI?

I have two tables; one called 'Application' the other called 'Connection'. The Application has a column [ID] and Connection as two columns [Application_ID1] and [Application_ID2]. Therefore: ...
Conner McCloskey's user avatar
0 votes
0 answers
7 views

Many to Many relationships - data model

I have a case where a product can have different prices per country. I am not sure of the best way to design this, which would help me maintain ORM relationships and the business layer while ...
user641887's user avatar
  • 1,506
-1 votes
1 answer
84 views

Mapping EER to Relational model. Mandatory participation of superclass with (Mandatory; Disjoint) subclasses

I have a Superclass A that has a 1:* (one-to-many) relationship with another entity (X) and the participation of A is mandatory. A has two subclasses with their own distinct attributes, B and C. The ...
VladimirSevenHand's user avatar
0 votes
1 answer
30 views

Mermaid Entity-Relationship diagram in top-down layout

Consider the following mermaid diagram: erDiagram CLIENT {} ACCOUNT {} PRODUCT {} ADDRESS {} INVESTMENT {} REPORT {} CLIENT ||--o{ ACCOUNT : account_fkey CLIENT ||--o{ PRODUCT : ...
Luís de Sousa's user avatar
-2 votes
2 answers
55 views

Difference between entity and relation in UML and SQL

Just wanted to make sure that I'm understanding this right: designing UML-diagram we are talking about the relations between entities? in the context of SQL a table is a relation? I can remember ...
Oskar Ray-Frayssinet's user avatar
-2 votes
0 answers
32 views

Translating ER diagram to Relational model , and checking if my solution is right or maybe there is better solution than that

ER DIAGRAM Picture Is this the correct answer: (the bold text means that is the key (underline)) PERSON(SSN,name,address) TEACHER(SSN*,salary) STUDENT(SSN*,majorDepartment) RESEARCH_ASSISTENT(SSN*,...
meow's user avatar
  • 1
0 votes
1 answer
58 views

Relations between entities in ER diagram: can they have a key?

Can a relation between entities have a key in an ER diagram? Doing my assignment I added a primary key to a relation between two entities but the instructor didn't agree.
Judy's user avatar
  • 11
0 votes
1 answer
14 views

Can i put not null constraint to FK?

Well I tried to make my own company database by ERD. But when i make some relation, it has it's own ID and Foreign key. But this relation must need FK so i make it to not null. At first, I think FK ...
노경현's user avatar
0 votes
1 answer
30 views

Symfony 5: ManyToMany Relationship Not Persisting When Added from MappedBy Side Without 'by_reference' => false

Context: I'm working on a Symfony 5 application with entities InventaireActif and TypeActif having a ManyToMany relationship. An issue arises when managing this relationship through a Symfony form. ...
Meyo GIT's user avatar
-1 votes
1 answer
63 views

Implement FK constraints as depicted in ER-diagram

While making a table, I got stuck at 2 things. We have 2 primary keys named "ID" in both Patient and Employee. And both of them are foreign keys to entity Doctor. How do I put this in ...
User's user avatar
  • 49
-1 votes
0 answers
24 views

Create entity relationship diagram by parsing MySQL audit log

We have an extensive database that needs to be cleaned up. Before doing this, we need to understand the relationship between tables. Does an app or script exist that can parse audit.log queries and ...
user3411972's user avatar
0 votes
0 answers
15 views

How do i connect relationships of tables on power BI manually

ERD relations, connecting 5 tables i tried doing it automatically and it works but i want to do it manually, I WANT TO SEE IF I CAN ADD RELATIONSHIPS in relation with the foreign keys and primary keys ...
Peace Dagada's user avatar
0 votes
0 answers
30 views

The relationship between the two red filled square boxes with the dotted line represents what kind of relationship?

I understand this drawing as an "n - 1" relationship, meaning many tabs belonging to one field. I would like to know, based on the provided image, what the relationship between those two ...
Văn Tân Lâm's user avatar
1 vote
1 answer
39 views

Is the quaternary relationship in this er diagram correct?

In an exercise I have found the following ER diagram but it does not make sense to me: As indicated in the diagram, I understand that: It is possible in 1 transaction of 1 copy of a book that is in 1 ...
Endika Etxaniz's user avatar
-1 votes
1 answer
53 views

ERD for website that sells machines and lets you download a mobile app that controls them

I'm creating an ERD for my graduation project creating a website that sells coffee machines and lets you download a mobile app that controls them remotely: I will add the attributes and the relation ...
A.Hesham's user avatar
1 vote
1 answer
93 views

How to represent a one-to-many relationship with total participation on the one side in an E-R diagram

Suppose there is an entity set representing people and an entity set representing books, and they are in a relationship about authoring. Suppose that every person must have authored at least one book (...
Gavin Rens's user avatar
0 votes
0 answers
6 views

how draw the relation diagram of the person able to apply to many jobs, but he can apply to each job only one time?

I was wondering how to model something like the college application where each student can apply to multiple colleges at the same time, but he can only apply once to any college? I thought that the ...
Omar Mokhtar's user avatar
3 votes
1 answer
76 views

IS Relation in Java [closed]

I want to write a pizza shop where you can order pizza and pasta. This graph shows how I'm thinking of modeling it, but I don't know how to implement the IS relation between dish and pizza/pasta. Any ...
ZenBa2's user avatar
  • 55
1 vote
1 answer
39 views

Springboot JPA relationship mapping error

Hi I am new to Springboot JPA. I am trying to learn about relationship mapping between the entities. I have 4 entities, Student, Address, Teacher and School. I am getting multiple errors latest being ...
Mausumi's user avatar
  • 67
1 vote
1 answer
79 views

Can a weak entity have more than one strong entity using the same relationship?

I am having trouble finding a similar example to what I'm thinking, which is why I'm having doubts that it's correct concerning ER diagrams and weak entity relationships with their strong entities. ...
Tita's user avatar
  • 113
1 vote
1 answer
17 views

How to query one-to-many relation with condition on main model

I know it is possible and maybe I had already done it, I need to refresh my memory. Let say we have one-to-many $post->comments and I want Comments on this post where comment date is greater than ...
Cutis's user avatar
  • 949
3 votes
2 answers
103 views

Using m..m in multiplicity in UML ER diagram?

According to different resources in UML notation multiplicities have different forms. Below are some of the forms which can be used in a use-case diagram. 1..1 0..* 1..* m..m m..n In T. Connelly and ...
ChathurawinD's user avatar
0 votes
2 answers
102 views

Mermaid ER diagram styling

I want to draw an ER diagram with Mermaid. But I can't find out how to style the box to make it with different colors. I know it's possible to set the theme color, but I can't do it to each box. I've ...
Darrius Chen's user avatar
0 votes
0 answers
54 views

save data aggregationly in floor database flutter

I have three tables named 1.members – 2.group – 3.membergroup. The relationship between the group and members table is many-to-many, which is defined inside the membergroup table and the membership ...
Robert's user avatar
  • 85
0 votes
0 answers
43 views

Diagram for Non-SQL Database

I am trying to create a entity relationship diagram for a Non-SQL Database. Basically the data represents a user which can select multiple languages which means it is a "n to m" relationship....
Tobs's user avatar
  • 29
0 votes
0 answers
29 views

Entity relation for groupings of different things

Entities: Capability Responsibility Implementation Components Component Responsibilities At the root level I have a Capability Responsibility (CR). This gets fulfilled by groups called components. ...
streetsoldier's user avatar
0 votes
0 answers
29 views

I have some trouble understanding things in my ER diagram

I recently had an analysis exam and one part of the document contains an entity relation diagram. I got a response from the professor (who is now unavailable for questions) with some remarks. Most of ...
Oddy36's user avatar
  • 11
-2 votes
1 answer
67 views

Room: SQLite_ERROR SQL error or missing database (no such table: )

I'm trying to establish a entity relationship with the room library in android. In this particular case I have an Event which can be a part of multiple EventRatings, while an EventRating only has 1 ...
David Natzkin's user avatar
2 votes
2 answers
120 views

Which relationship in Entity-Relationship (ER) models is equivalent to aggregation in UML?

I'm very puzzled about how to express the concept of 'aggregation' from UML in Entity-Relationship (ER) models. Although the Extended ER (EER) model provides the concept of aggregation, it seems to ...
Xavier Z.'s user avatar
  • 179
0 votes
0 answers
78 views

Can I use TypeORM @JoinColumn without the double underscores?

I have 2 entities (so far) with a ManyToOne relationship between the Posts and the User (the order came this way because the user entity existed first and the post entity was created afterward before ...
Rueben Cumberbatch's user avatar
1 vote
0 answers
21 views

Why did primal keys auto-generate for some of my entities when I converted my entity model to a relational model?

I produced a relational model from my entity model and some of my entitiess now have primal keys that I didn't generate. I will provide some images from the diagrams. My Add entity In the realatioanl ...
Brad Troll's user avatar
0 votes
1 answer
178 views

How to ensure total participation on one side of a many-to-many relation using SQL in Oracle?

I'm trying to enforce a restriction of a many-to-many relation with total participation on one of the sides using SQL in an Oracle database but can't figure out how. For example, I have a set of ...
Felipe Rossi's user avatar
0 votes
0 answers
183 views

Problem fetching data in ManyToMany and OneToMany relationship using JPA: Spring Boot

I am working on a small project using Spring Boot, Hibernate, and JPA. I have created three entities- Book Author Publication Required relationships- One book can be written by multiple authors and ...
ayush's user avatar
  • 534
-1 votes
1 answer
29 views

Foreign key for subclasses in SQL

I have a relationship between Pets, Customers, and Shipping Company Invoice and Pets has three subclasses Dog, Cat, and Bird, how should I translate that into SQL, what would the id in Invoice ...
Samil Tajani's user avatar
0 votes
0 answers
347 views

Issue in power portal API call with N:N relationship

I have created a new entry in dataverse and made relationship with Account table(N:N). And then set table permission for that new entiry as Global, it works fine. **But when im changing that table ...
GokulPgp's user avatar
  • 101
0 votes
1 answer
79 views

In an ERD can 2 actions be connected to each other?

My program allows the user to select up to 3 suburbs in their local region. The website emails the user about road crashes that occurred in those suburbs. It stores their UserID and the suburbs they ...
Neelupet YT's user avatar
-1 votes
1 answer
26 views

Should I include a junction table with a primary key in my ski rental database schema?

I need to make the ER diagram and the relational schema of the Ski rentals. I have an Customer, Rental and Ski as a entities as well as their attributes. Customers and Rentals should have the one-to-...
cinnamond's user avatar
1 vote
1 answer
75 views

Prevent duplicated relationships on a multi-file Plantuml ER Diagram

I am using PlantUML to built a ER diagram and my intention is to separate the database structure in multiple DER file views so I would have a "full-view" and a "system table's view"...
RicardoPHP's user avatar
1 vote
0 answers
80 views

@ManyToOne(fetch = FetchType.LAZY) annotation makes extra queries

I have two entities The first: @Entity data class EntityA( ... @ManyToOne(fetch = FetchType.LAZY) var entityB: EntityB, ... ) The second one: @Entity data class EntityB( ... ) ...
Kirill Zhurbin's user avatar
-1 votes
1 answer
142 views

What is the reason that there is no primary key in a associative entity?

I have the following ERD diagram: What is the difference between a many-to-many relationship and an associative entity? Why is there no PK in the Teaching entity?
hasannn2666's user avatar
1 vote
1 answer
89 views

how to make a relationship with a table column to multiple table based on condition in prisma ORM

I have a model model image { id Int @id @default(autoincrement()) entityId Int entityTypeId Int imageUrl String recordStatusRefId Int? createdBy ...
Aravind Krishnan's user avatar
0 votes
0 answers
62 views

How to make relation between entities from different packages and keep encapsulation?

I have problems with architecture of my project application. I wanted to avoid all classes being public (it is problem of layer packaging), so I created vertical packages as shown below on the screen-...
viep's user avatar
  • 1
0 votes
1 answer
149 views

C# one to many relationship unable to access the other model's attributes

Im new to c# and Im working on a entity framework project that access a mysql database and has two models: User and Company. the problem is, when making the connection everything is okay with the ...
vitoriac's user avatar
  • 109
2 votes
1 answer
126 views

CROW notation for ER diagram SQL Developer

I am new to Oracle SQL Developer tool. I see Entity diagrams in CROW notation. How to represent uni-directional and bi-directional relationships in CROW notation? Is it like the usual --> for uni ...
ckaus's user avatar
  • 321
0 votes
0 answers
281 views

Can I map a List of Id's to a List of Entities with that Id at the model level in Entity Framework?

I have a Pets class: public class Pets { [Key] public int Id { get; set; } public List<int> DogIds { get; set; } public virtual List<Dog> Dogs { get; set; } } I then have a Dog ...
Slushba132's user avatar
0 votes
0 answers
59 views

What is meant by unique cardinality constraint in this example?

ER Diagram Basic schema Unique constraints ? I am somewhat confused by what exactly school of Located_at or school of Principle_of is meant to be? I understand the idea here is to denote the 1..1 ...
Frank Peterson's user avatar
1 vote
1 answer
32 views

Relationships laravel doesn't work after 5th position

I have 2 models: model 1 -> hasMany(model2) public function model2(){ return $this->hasMany(Model2::class, 'field_fk_id'); } model 2 -> belongsTo(model1) public function model1(){ ...
Robert Blasco Villarroya's user avatar
0 votes
0 answers
12 views

How to show a M:N relationship on a rational diagram?

I have a M:N relationship between to entities and to convert them to a rational diagram I have to create a new entity that has as foreign keys the primary key of each entity. Do I also need to add a ...
Nafsika's user avatar
  • 17
0 votes
1 answer
54 views

Minimum Cardinality in ER diagram

I want to know if this depiction is right or not, If so why there is a partial constraint over the department entity and not the employee. because the way I depict it is that the employee may or may ...
hady ayman's user avatar
0 votes
1 answer
20 views

Exception while Initializing for Singleton DBInitService

While I was running my app, the exception was thrown as follows: 严重: Exception while loading the app 严重: Undeployment failed for context /wren6-fp 严重: Exception while loading the app : jakarta....
Ryan Ren's user avatar

1
2 3 4 5
60