Questions tagged [erd]

Entity Relationship Diagram

Filter by
Sorted by
Tagged with
1
vote
0answers
38 views

Crow's foot notation--what is the difference between “one” and “one-and-only-one” regarding relationship cardinalities?

I'm trying to figure out the difference between the single-bar and double-bar cardinality indicators as in the figure below: Some sources seem to use one notation while others use the other. I can't ...
1
vote
0answers
17 views

How to create a correct entity-relationship diagram (ERD) about a video game profits scenario

I'm starting to build my application database, and I'm really new to the this world, so I have a lot of doubts about my ERD and if its entity types and relationships are ok. This is an application ...
0
votes
1answer
24 views

modeling advice for table which may have 2 father tables

I am developing a ERP for a small cooperative with special needs (that'y why they need a non-general solution). I'd like to model the following: A "receipt" can either be incoming or outgoing For ...
1
vote
1answer
109 views

Which table gets the FK? Is there a clear Parent-Child relationship here?

I have the following tables: Each ProductLine will encompass many Parts. For this reason, it initially seemed to me that the Part table is a child of the ProductLine table. However, a part is not ...
0
votes
0answers
65 views

Building an Entity-Relationship Diagram for a Language Dictionary

I need advice on how to build entity-relationship diagram (ERD) for Language Dictionary. Since I did not build ERD before, I will try to explain and show the ultimate goal of this project below. ...
0
votes
0answers
22 views

How to model this scenario in conceptual erd?Bridge entity needed?

I have a house-share entity( primary key : house-share id) and housekeeper entity (primary key: housekeeper id). At any point in time a housekeeper can only work in one house-share. When a ...
2
votes
1answer
39 views

How to model a set of unique objects?

I have an entity type called 'Object', and I need to model an object set as a list of unique objects with variable length. Then, each object could belongs to many object sets. Current entity-...
-1
votes
1answer
41 views

Where to place derived attributes

I have an assignment which requires me to design a database. I have 3 entity types WARD, BED, and BED_ASSIGMENT (which is the "composite" entity type between BED and WARD). The BED primary key ...
1
vote
2answers
50 views

How to represent the relationship between artists and albums in an entity-relationship diagram

I'm learning and practicing with the E-R model trying to design a music industry database. With this section of the diagram I have a doubt: I suppose an album can be had by an artist and a band, not ...
-1
votes
1answer
67 views

ER diagram to Relational Schema (Many to Many relationship)

In this ER diagram, can anyone explain how we should convert the many to many relationships ('view', 'update' and 'diagnose') to Relational Schema and then SQL? What I think is that there shouldn't be ...
1
vote
1answer
53 views

Need help with a table relationships and over-all design

My design is a Netflix clone which has movies and shows just like Netflix. There is also a table called transcodes which will have information on a movie or episode video transcode. My problem is, I ...
0
votes
1answer
40 views

How do I draw the erd to model this scenario?

Customers are billed for the cost for the activity itself and also any "extra" items which are used as part of an activity. So I have the customers entity (identified by customer id) and an item ...
0
votes
0answers
29 views

When do I create a separate entity when drawing conceptual models?

I have these 3 scenarios: Rooms located in a house are assigned a room number within that house - thus, for example, each house has a room number 1. Each room has a phone number etc... My guess is ...
0
votes
0answers
14 views

Convert IS A relationship into relational schema [duplicate]

I'm trying to map below IS A relationship into relational schema. Would there be two tables one for Savings account and one for Checking account each containing their own attributes? Or would there ...
0
votes
1answer
53 views

Creating and querying a database to set hierarchical associations between Groups, Users, Items and Points

I am working with three entity types, Group, User and Item. A Group consists of Users, and a User consists of Items. Now, I have to work with a fourth entity type: Point. I want to be able to ...
0
votes
0answers
71 views

Creating a Database for Multiple Calendars Support

I am trying to create a calendar application that can support multiple calendars, for instance Indian, Nepali, Russian etc. Users can enable or disable the calendars according to their needs. I have ...
1
vote
2answers
309 views

Mapping a 1:1:N ternary relationship to a relational schema

I have a question about mapping (conceptual) n-ary relationships to (logical) relations. Assume we have three strong entity types: Member, Equipment, and Time Slot, and a relationship named Reserves ...
0
votes
0answers
20 views

Database design of user setting

I have users who place Orders. There are some settings that user can decide and that can be applied at User level which means it will be applicable to all future orders that are placed by user or the ...
0
votes
0answers
46 views

Can an entity be an attribute of another entity?

For ER/EER Diagram: I have one entity Stadium and another entity Match. In Match entity I have the stadium as an attribute. The SOCCER database shall keep information about the stadiums used as ...
0
votes
1answer
123 views

EER Diagram - subclasses which are neither disjoint nor fully overlapping

Suppose we are writing an enhanced entity-relationship diagram (EERD) for a company's database. This company offers two services A and B. If the two services were disjoint, then this might look ...
1
vote
1answer
47 views

Setting up a many-to-many relationship based off of two other many-to-many relationships

I have 3 main top level entities: Project (PK: Id) Owner (PK: Id) Product (PK: Id) Here are the rules: A Project can have many Owners. An Owner can have many Projects. A Project can have many ...
1
vote
1answer
22 views

How to specify the domain of an attribute in an entity-relationship diagram (ERD)?

In an ERD (as in, rectangles for entity types, diamonds for relationship types, ovals for attributes, etc.) how would one specify that an attribute is, say, a 5-letter word?
0
votes
0answers
82 views

Syntax to establish a strong and weak entity relationship in MySQL? Weak entity's partial key is different from strong entity's primary key

The following image below depicts an entity-relationship diagram (ERD) of a strong and weak entity. The closest example, I found here (link), required that a foreign key be defined in the weak entity,...
2
votes
1answer
72 views

Does adding a surrogate key get rid of an identifying relationship between two entities?

In the following example, we have a Comments table with a composite primary key (PK) CREATE TABLE Comments ( video_id INT NOT NULL, user_id INT NOT NULL, comment_dt DATETIME NOT NULL, PRIMARY ...
0
votes
2answers
57 views

Modelling two dependent many-to-many relationships

I have a user who may have 0 or more foo's and bar's. Here is a diagram: Each foo has a unique integer ord. If a user has a bar, then this implies that he has a foo with ord=1. A user may not have ...
0
votes
3answers
96 views

Model multiple 1-m relationship to a single entity

I have an entity called Box. This box has a from property which could be from a variety of different entities. It could be from a user, office, import, storage and many more. So far I can think of ...
1
vote
1answer
161 views

Converting (a) an entity-relationship diagram about an airline booking scenario to (b) a relational schema

I am currently following notes on a certain "7 step strategy" to transform an ERD to a relational schema and was wondering some points about step 4, converting one-to-many (1:N) relationships. The ...
1
vote
0answers
34 views

Cardinality with specialization in enhanced entity-relationship diagrams

I'm currently taking an introduction course to databases and I've come across a problem not described in the textbook. I'm wondering about the use of cardinality with the use of specialization in ...
2
votes
1answer
474 views

How to generate Entity Relationship (ER) Diagram of a on-premises database using Azure Data Studio (macOS)?

I found a similar question for SQL Server Management Studio. But I use latest Azure Data Studio on macOS. We use on-premises SQL Server (not Azure cloud). How can I use Azure Data Studio to generate ...
0
votes
1answer
98 views

Designing a data model for a survey; building the relationships

Let's say I have a survey that will be handed out to many people. I have a hypothetical diagram with User, Question, and Response entities. Should my relationship be one-to-one from question to answer?...
0
votes
1answer
56 views

Entity-Relationship Diagram problem: trying to resolve a tentative many to many relationship

The case study states "each car belongs to a car type" and "each mechanic specializes in a car type or many car types". My current entity type definitions: Car CarType Mechanic My Entity-...
0
votes
1answer
123 views

How to maintain customer addresses for Orders?

The database I am designing is part of a project I am working on. I have come up with 3 simple "business rules": Customers must either be Individuals or Businesses (a business belongs to a certain ...
1
vote
0answers
32 views

Designing a message system

I want to create a messaging system but I'm stuck in the relationships between the sender/receiver of the message and the message itself. This is a list of requirements for this system: Allow both ...
4
votes
2answers
158 views

Should a composite primary key out of 3-4 attributes or a unique artificial ID should be used for the situation below?

For a small beginner project to start with databases and system development, I'm trying to develop a system that represents the classic case of an administration system for students and exams. This is ...
1
vote
0answers
240 views

Gaming shop database schema

I'm trying to design schema for my personal project that would be an online gaming shop. I would like to ask you guys for any suggestions/tips on how could I maybe improve my current draft. Concerns: ...
4
votes
2answers
107 views

How do you read a one-to-many relationship in both directions?

I'm having issues with reading this relationship. Let's take the Professor and Class entities in this example. If I read this from Professor to Class, I would say, "A Professor teaches one to many ...
-3
votes
1answer
30 views

I need help with normalising the data derived from a survey

Background information: I have been assigned to make a survey on E-sports and build a database. My survey can be accessible here https://devpatel6.typeform.com/to/MB1DYP . In brief, this survey ...
1
vote
1answer
104 views

Extended Entity-Relationship Diagram: Do the sub classes have foreign keys or primary keys?

Consider this example (they are disjoint, by the way): There are two scenarios which I am guessing: While translating it to relational tables, the rows in PROGRAMMER are unique which do not exist ...
2
votes
0answers
115 views

Modelling a database for a simple IT device tracking scenario

Sorry, my English is not that good. I need a simple IT device tracking sytem at work. For each device I need to know its current location, status and ownership (employee to which it is assigned). ...
-1
votes
1answer
509 views

Is there an open source PostgreSQL IDE that allows for model generation? [closed]

I have done quite a lot of SQL Server work where I could use SSMS. Now I'm working with Postgres and I miss the ability to generate models (diagrams) from existing relations (taking into account ...
3
votes
1answer
551 views

How can a weak entity be related to a weak entity?

As we can see in the entity-relationship diagram (ERD) below, the ATTENDANCE entity is related to the TRANSCRIPT entity. But how can entities in TRANSCRIPT be identified if there is no primary key in ...
1
vote
0answers
151 views

Modelling an entity-relationship diagram for a scenario involving companies, services, and clients

I am creating an entity-relationship diagram (ERD) for managing workflow and other details of Company X in which I am maintaining details of the following objects: Employees of Company X Services ...
1
vote
0answers
38 views

Creating an entity-relationship diagram about an art fairs and galleries business environment

Scenario description The charactheristics of the business domain under consideration are: Each and every art item has a unique identifying number, and also a name and asking price. Art galleries ...
0
votes
1answer
182 views

Entity-Relationship Diagram Software [closed]

I saw this E-R diagram in an answer on Stack Overflow: Does anyone know which software was used to create it? I use LucidChart but that output is really nice!
1
vote
1answer
379 views

Clarification on Cardinality and Participation

I'm currently redesigning a schema with 20 or so tables and my first task is to create an ERD from the existing tables/constraints/relationships. This has proven more difficult than I expected because ...
1
vote
0answers
148 views

How to create entity-relationship diagram for tables that can potentially be united by an “IS A” relationship?

I have this schema: create table hall( building-id int, hall-id int, capacity int, primary key(building-id, hall-id) ); create table semester( sem-id char(5), start-date date, eend-...
4
votes
1answer
732 views

Designing a database which can track stock movements

I work for a manufacturing company which sells machines to customers which have a control unit installed in them. We need to keep track of the locations of all the Machines after they are sold to the ...
1
vote
0answers
29 views

Local Transport Fare design: how to relate departures, destinations and locations

I am doing a conceptual model for local transportation fare app The goal is for users to quickly check the current fare and the previous fare from one location to the other. Sometimes, the ...
0
votes
1answer
78 views

Skip ERD in database implementation [closed]

AS we know that entity relation diagram(ERD) is an important concept in database implementation, But I was wondering that can we skip this step when creating a small database containing a few tables i....
1
vote
1answer
24 views

How to express a “some of which are” and “not all are” relationship with enhanced entity-relationship diagrams?

For example: Gardens have attribute gate, Condos have attribute door. Some of the Gardens and Condos are Private_Properties. On the other hand, Private_Properties are not restricted to only Gardens ...