Questions tagged [erd]

Entity Relationship Diagram

Filter by
Sorted by
Tagged with
-1 votes
0 answers
7 views

What am i to do further with this ERD? Am i doing this right?

Here is the question i was given. I'm confused at some parts and you might notice where from looking at the ERD i have done. It can be accessed Here Draw the EER diagram using Chen’s notation for the ...
  • 1
0 votes
0 answers
8 views

Can an ER relationship have `NULL`able attributes?

Texts out there about the entity-relationship model seem to only mention NULLable attributes on entity types and not relationships. Is there a concrete saying whether such attributes are allowed to ...
3 votes
1 answer
65 views

If an entity's primary key must contain a foreign key, does that make the entity weak?

I'm currently learning about strong and weak entity types in the context of RDBMS. While reading, I came across this statement: "A weak entity is dependent on a strong entity to ensure its ...
  • 133
2 votes
0 answers
22 views

My relational schema and a few questions about relations and duplicate values in columns

I'm trying to create database in which I could store thousands of job postings. I put here 5 sample records of these job postings so that you could better understand how everything looks like: Now, ...
3 votes
0 answers
44 views

Help Creating a 'Complex' ERD

I am stuck on how to represent the relationships I need correctly. I have a Produce table. Each type of produce—e.g., 'lettuce'—has one or more quantity suffixes that can be associated with it, e.g., '...
  • 39
0 votes
0 answers
27 views

ERD Design for mangers and their respective locations

I am tasked with replacing the company spreadsheet containing all our sites and which belong to the three upper managers in their respective hierarchy to a relational database. This is a relatively ...
-4 votes
0 answers
16 views

ER Diagram Doubt! Good Question

Double Happiness, a bus company, records the following information for all their bus trips: a unique trip#, date and time of departure, date and time of arrival, and a description of the trip. Double ...
  • 1
1 vote
1 answer
22 views

How to implement disjoint (nonoverlapping) subtype with total completeness in MongoDB?

I designed an entity relationship diagram (ERD) with the goal of creating two child entities (INSTITUTION and SPACECRAFT) of a parent entity (LOCATION), which is distinguished depending on the value ...
  • 113
1 vote
0 answers
45 views

Can a foreign key be a primary key?

I want to know the relationship takes, teaches, advisors tables underlined attributes are foreign key or primary key? or both?
1 vote
0 answers
21 views

Can I illustrate how a relationship depends on another in an ER diagram?

I'm new to data modelling and trying to build my first ER diagram for supermarket management. My current diagram is based on the following description which I myself come up with: "Suppliers ...
0 votes
0 answers
32 views

Design proper schema for flexible entity field

I have some entities modeled like on the picture. Every entity have field classifications which contains list of Classification. Classification itself can have any name and value, all represented as ...
  • 101
0 votes
0 answers
76 views

Likes table with different types

I have an oversimplified database design where I wish to put all likes in the same table (only if it makes sense) . A like, can be on either on a POST or on a COMMENT. Options: Distinguish the two ...
0 votes
0 answers
53 views

There are 2 ERD Designs, and one has a strange combination. I am told both are correct. why?

One of the designs seems clear: A REQUESTEDPRODUCT is picked from STOCK (which has many locations). The primary key is a composite key of 4 foreign keys. The other design is more unclear. The "...
0 votes
4 answers
80 views

Foreign key location

This is a question from a Master's degree. What is the correct response to the question depicted in the image, and why? Or do you believe there could be multiple correct answers?
1 vote
1 answer
211 views

Chen notation to crow's foot

How do I illustrate relationships which has an attribute in chen notation to crows foot notation? Example: There is an attribute "quantity" in the relation. How do I draw that in crow's ...
0 votes
0 answers
62 views

Is there a command line tool to convert a SQL DDL file describing tables and relationships into a diagram?

Is there a command line tool that takes one or more SQL DLL files describing entities and relationships, and then transforms it into an ER diagram or something textual that can be turned into an ER ...
  • 111
0 votes
0 answers
20 views

Is this ER Module correct

I am working on my first ER diagram for a case study. I wonder whether it is correct. I will include my case study here. It is really helpful if anyone can give me a feedback regarding my diagram. ...
0 votes
0 answers
19 views

Need help creating a transaction-grained fact table

For a personal project I need to design for the first time in my life a (star schema to keep it simple) relational database, the context is the sport of boxing. Specifically, I need help designing a ...
0 votes
0 answers
45 views

Is this ER diagram correct?

I am working on my first ER diagram, for a clothing brand case study. I was wondering if my work is correct. Any feedback is more than welcome. My most important concern is the key relationships ...
0 votes
0 answers
32 views

Please review my ERD and SQL tables

it is about a carPooling app where any user can propose a trajectory that is divided into chuncks. Another user can construct his trip from available chuncks. A user is identified by his mail. He can ...
0 votes
0 answers
18 views

ERD relationships rental_car

So I'm having difficulties with making an erd for a project about renting cars. I think I'm almost done, I only have to make the relationship between 3 tables ,2 of them had many to many relationship ...
  • 1
1 vote
0 answers
33 views

Fashion Show ERD

working on a class project. Have to make a ERD for a fashion show. Not looking for a super in depth ERD, but one that will give a good grade. I'd like it to be able to Have a 'Clock-In/Clock-Out ...
0 votes
1 answer
56 views

Is my database ERD well designed

I'm creating a PostgreSQL database for datasets, which should store historical and future data of weather forecasts and train timetables. I'm wondering if my ERD is good enough for a database which ...
  • 1
0 votes
1 answer
37 views

What is the correct usage of IN and ORDER BY keywords when used in conjunction with subqueries?

ERD for my simple db design: I want to order children based on their parent's last name. I am trying to use the following query: SELECT * FROM children WHERE parent_id IN (SELECT parent_id ...
  • 127
0 votes
2 answers
25 views

Database Design for non-profit family assistance

I have a very basic ERD created for a simple database that stores some information about refuge families being helped out by a non-profit that helps provides some basic needs. ID is the primary key ...
  • 127
1 vote
0 answers
227 views

How do I adjust the table link endpoint in PgAdmin's ERD tool after autogenerating it from an existing database?

I can move the lines themselves around, but I can't move the endpoints, which cause the lines to overlap. The only way to understand which relationship is being referenced is by hovering over the ...
0 votes
1 answer
39 views

How should one design a logical data model for a social platform, or skip it?

After studying from 'Usage-Driven Database Design: From Logical Data Modeling Through Physical Schema Definition'a book by George Tillmann. I want to create a logical model for a my own social ...
  • 15
0 votes
0 answers
232 views

Entity relation with itself

I want to make an ER diagram for scientific research papers, one of the constraints is that a paper shouldn't cite itself. I'm not very sure how to achieve this, as this question points out, the ER ...
-1 votes
1 answer
409 views

How to design a complex multi approval expense db schema in MySQL

I'm very beginner in database design and had the following problem to solve. DB schema design for an expense approval system with these cases approval system, every company has 1 or many teams where ...
  • 49
0 votes
0 answers
153 views

When should I use associative entity?

I am studying DBMS and I have read that associative entity is used when there is a many to many relationships but I am confused with the graph. It has many to many relationships but did not use an ...
  • 1
0 votes
0 answers
59 views

E-R diagram 1-to-1 mandatory relationship for two superclass entities to relational schema

How are two superclass entities that are connected to a mandatory 1-to-1 relationship converted to relational schemas? These two superclass entities are also abstract, meaning that they will not have ...
  • 101
0 votes
1 answer
13 views

Convert generalization in ERD to Relationnal Database having no additional column

I've a quite simple problem but the litterature I came accross didn't seem to dwell on. Let's say I have an entity OFFER which represents an Offer on a Product, for each product, one offer can be &...
0 votes
2 answers
60 views

ERD - How to add an attribute to one side of the recursive relation?

The simplified scenario for the ERD A company has employees (each has unique id emp_id) Each employee is supervised by another employee A supervising employee has a special attribute SID Here is my ...
  • 45
0 votes
0 answers
59 views

Is it possible for a weak entity to be related to its identifying strong entity, as well as another non-identifying strong entity?

For context, I and a small group aim to design a game recommendation/search engine, and we ran into some problems designing the ER Diagram & translating said diagram into relational schema. At ...
2 votes
2 answers
275 views

Primary keys due to inheritance

I am trying to design a database for postgrad office and we have a parent class "User" that has a username as a primary key for authentication and we have corresponding subclasses "...
0 votes
0 answers
23 views

Foreign key or copy of attributes in log entities

I am trying to design an ER for a system with the following specifications: Each user has an account The user can link his/her bank accounts to his/her account in our system The user can deposit or ...
  • 109
0 votes
0 answers
244 views

ERD to Star Schema

I have a simple ERD diagram as represented below for a supplier for inventory goods. What would be the best way to turn this ERD into a Star Schema with one Fact Table and a few dimension tables? To ...
0 votes
0 answers
29 views

Need guidance in creating an EERD

Hope I'm posting this at the right place. I have an assignment that I've been mulling over in an attempt to understand it completely. Instructions You are to create an EER diagram from the information ...
0 votes
1 answer
177 views

Entity-relationship for database design

Customers have the option to not provide a review or leave as many reviews as they want, but they cant have multiple reviews for the same product. How do I model this?
  • 3
1 vote
0 answers
25 views

ERD related, can you make one to one relationship with a single attribute entity to another entity?

ERD Here So for my database project, I designed a meat supply chain optimization project for a large organization, for example such as walmart, where every part of the chain is owned by the ...
0 votes
1 answer
35 views

How to re-design my relational model if there will be NULLs in one column?

I'm trying to build database which allow me store job postings from scraped websites and now I'm in phase of creating a relational model. Getting straight to the point I want to know how should I re-...
0 votes
1 answer
43 views

Do I need to implement id column to table if i know that every added row will be unique? [duplicate]

I want to create database which allow me to store IT job offers from various websites. While creating ER diagram I started wondering if I really need an id column in one particular table. Look at this ...
0 votes
1 answer
84 views

ERD for yearly budget ceiling advice

I'm working on webdev that involving yearly budget ceiling, but I can't wrap my head around to design such budget ceiling (my first project involving budgeting). So I need some advice. So the scenario ...
1 vote
1 answer
112 views

ER-Model to relational mapping

"Fundamentals of Database Systems" by Ramez Elmasri covers this topic extensively, I've gone through it and seemingly the rules mentioned aim at converting the ER-Model to a relational ...
  • 11
0 votes
1 answer
120 views

Can a foreign key be used for two primary keys?

I'm still a beginner in sql and I have to transform this relation between clients and addresses and vendors and adresses. This uses 2 primary keys(1 for the vendors and 1 for the clients). My question ...
0 votes
1 answer
52 views

Is the database design alright? And I'm quite lost with the admin entity here

A quick description of my system would be: there are 2 users: users and admin. User registers on the website. Upon registration, the system will generate a QR code for the user. The user then goes to ...
  • 103
0 votes
0 answers
264 views

Is my ER Diagram correct according this business rules?

Tiny Hospital keeps information on patients and hospital rooms. The system assigns each patient a patient ID number. In addition, the patient’s last name, first name, date of birth, and date of ...
0 votes
0 answers
298 views

ERD for a simple bank system

I tried creating a simple erd for a banking system, I was wondering what can I improve, and where I did wrong. I'll also have to transfer this erd to sql and then try some queries on it. Thanks in ...
0 votes
3 answers
5k views

Entity Relationship Diagram for Hotel

I tried creating an ERD model for hotel reservation and billing. Are the cardinalities correct, I'm a bit confused about that. And are there any attributes that are not in the right place? If someone ...
2 votes
1 answer
42 views

Question on EDR: a plant may have one or more harvesting seasons

I working on the following ERD, trying to understand what is the best way to connect the entities in the example of plants! For now I'm just focusing on the right side of the ERD (yellow, orange, ...

1
2 3 4 5
8