Skip to main content

Questions tagged [erd]

114 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
4k views

Working on a decision tree database design

I'm doing the conceptual model for a Decision tree database. The goal is store any Decision tree. I have four entity types: DecisionTree, Node, Branch and Leaf. Each Decision tree is composed of ...
Amater90's user avatar
5 votes
1 answer
3k views

ERD for a web development company

I am working on an ERD which represents the relationships between entities in a Web development company behavioral model. There I have entities like: Customer Service ----------- (like: web ...
WordPress Speed's user avatar
4 votes
0 answers
311 views

Accounting database model

Need to build a service with an internal wallet function. Here is a simple use-case diagram: I have made a DB model But I don't like it for the next reasons No guarantee there will be only 1 sub-...
Dilame Nickolson's user avatar
4 votes
2 answers
2k views

Entity-Relationship Diagrams: Identifying which way a relationship flows

I am having trouble grasping the "relationship" concept of an entity-relationship diagram. For example, you have Classroom and Furniture as your entities. If you were to put a relationship diamond ...
applaps's user avatar
  • 41
4 votes
4 answers
13k views

How can I model a medical scenario in an entity-relationship diagram?

I am a self-taught frontend developer that is trying to go full-stack, so I am trying to teach myself data modelling by means of working on some exercises out of a database management book. In this ...
user3832583's user avatar
3 votes
1 answer
217 views

Need help with first ER diagram

This is my first time doing the diagram. My teacher isn't the best at helping out or responding to questions so I've come here to ask for further assistance. I think I've mostly got it correct, but ...
DataBasedxd's user avatar
3 votes
0 answers
60 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., '...
KP7's user avatar
  • 39
3 votes
0 answers
217 views

How to design a database for my entity-relationship diagram about Projects, Tasks and Developers

I'm new to database and my entity-relationship diagram is as follows: According to that I designed my SQL-DDL database statements as shown below: CREATE TABLE Developer ( DeveloperID int NOT ...
Gamma's user avatar
  • 131
3 votes
0 answers
2k views

Serialized Inventory Tracking

I'm developing a inventory system with optional serial no tracking (which users can turn on for items they select). in order to keep stock records currently i came up with two options. Option 01 use ...
eric's user avatar
  • 143
3 votes
0 answers
2k views

ERD for a Contract between a Writer and a Publisher: Is it correct, can it be simpler?

I created an entity-relationship diagram (ERD) for a book publishing business context that I will detail bellow. Entity types The entity types of interest are: Writer Work (as a book) Publisher Split ...
Goce Ribeski's user avatar
2 votes
0 answers
73 views

One-to-One? or One-to-Zero-or-One?

Scenario: I am being asked to create an HR training tracker for employees of a business. in this database I am using two tables: EMPLOYEE(EMPLID, LastName, FirstName, PrimaryEmail) with EMPLID as the ...
Nathan Willett's user avatar
2 votes
0 answers
226 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, ...
beginsql's user avatar
2 votes
0 answers
886 views

Aggregation Vs Ternary relationship

I am reading a book about database systems and in the chapter covering database design using ER, the author aims to explain when to use aggregation versus ternary relationship. In short, each Project ...
CS336's user avatar
  • 15
2 votes
0 answers
6k 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 ...
ahh_real_numbers's user avatar
2 votes
0 answers
270 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 ...
TJ is too short's user avatar
2 votes
0 answers
330 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). ...
liuc's user avatar
  • 21
2 votes
0 answers
678 views

Composite attributes in Barker notation

I would like to know how to draw set of entities with composite attribute in Barker's notation. In UML you can do this in that way: and in Chen's notation: Please, help. I have final exam day after ...
Przemek Sulecki's user avatar
2 votes
0 answers
50 views

Modelling a scenario involving architecture firms projects

I'm very new to Database Modelling (using the Finkelstein methodology) and I'm getting confused on a modelling scenario in particular. I am able to draw out the basics, however am running into some ...
Katie's user avatar
  • 21
2 votes
1 answer
108 views

Troubles with an attribute that depends on the value of another attribute

I'm redesigning a health insurance costs database (actually they're not really insurance plans in my country but I think that for the sake of the example it doensn't matter). We're the health plan ...
rschpdr's user avatar
  • 121
2 votes
1 answer
917 views

Drawing an entity-relationship diagram for a store business context

I have an entity called Users, with the attributes Id, Name, and Phone No. The objective is to develop an entity-relationship diagram (ERD for brevity) where Users might be Store Cashiers, and also ...
abr_78's user avatar
  • 34
2 votes
0 answers
782 views

How can I draw an entity-relationship diagram for a medical business domain?

I have to develop an entity-relationship diagram (ERD) for a business domain with the following characteristics: A doctor consults from one clinic only, but a clinic may have many doctors working ...
Sagar's user avatar
  • 21
2 votes
0 answers
1k views

How can I model an ERD with relationships that include "this or that but not both" and "this and that"?

I am having trouble drawing a entity-relationship diagram (ERD) and I wanted to ask for any guidance on what I am doing wrong. Busines rules The descriptions of the assignment and of the business ...
user129484's user avatar
2 votes
0 answers
1k views

A Shop can have Products from a Supplier

I'm creating a Platform where Suppliers have Products that Shops can choose, add to their Shop and start selling. My situation is as follows: A Supplier can have many Products (for example: 'T-...
Miguel Stevens's user avatar
2 votes
0 answers
127 views

How can you use an entity-relationship diagram to document business processes?

Past exam question: How can you use an entity relationship diagram to document business processes? As far as I know, I would use an entity-relationship diagram (ERD) to document the relationships ...
Kirsten Jay's user avatar
2 votes
0 answers
568 views

How to resolve "unwanted" recursive relationship?

I'm currently designing a database for concerts, so I have created the following entity-relationship diagram (ERD): Business domain characteristics A concert can take place on a regular event or a ...
Leonhard's user avatar
2 votes
0 answers
727 views

What is the difference between (Superclass/Subclass) Total and Partial Specialization?

What is the difference between total and partial specialization of superclass/subclass (or supertype-subtype) structures in enhanced entity-relationship modeling?
user2331051's user avatar
2 votes
0 answers
137 views

ERD to SQL Server

I am working on an assignment and am having one heck of a time getting my head wrapped around these questions. I need to be able to write in SQL Server 2014 certain select statements based solely off ...
bonzo's user avatar
  • 21
2 votes
0 answers
1k views

Handling Strong and Weak entity types in a one-to-one relationship

I am modelling a database for a term project and I have come across something I do not have a definite answer to. Diagram I was supplied with the following Entity-Relationship diagram: Description So,...
JediDP's user avatar
  • 21
2 votes
0 answers
2k views

What is a good database design approach for my Online Quiz Android Application?

I have been working on an Android Online Quiz Application with PHP & MySQL. I know what attributes i need however when designing the relationship it becomes complex and confusing when I analysed ...
Muhammad Catubig's user avatar
2 votes
0 answers
1k views

The nature of the relationship between two tables in MySQL

Good day. I'm designing a database for a research project where we're predicting whether or not young female athletes will rupture their ACL(s) based on the nature of a test jump recorded with a ...
nerdenator's user avatar
1 vote
0 answers
61 views

Table for an Appointment App

experts, I am building out an appointment scheduler application. I am seeking advice on how best to tackle this issue. I am building out my ERD and I am the point where I will be creating a ...
Isaiah Melendez's user avatar
1 vote
0 answers
926 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?
Primer Cielo's user avatar
1 vote
0 answers
356 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 ...
destinically's user avatar
1 vote
0 answers
224 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 ...
Richard Sabino's user avatar
1 vote
0 answers
99 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 ...
fmatt's user avatar
  • 111
1 vote
0 answers
157 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 ...
Kazi Newaz's user avatar
1 vote
1 answer
378 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 ...
Yueor's user avatar
  • 11
1 vote
2 answers
529 views

MySQL - Many to Many relationship, or one to many with additional columns

Our product contains some constraints that made us contemplate which table design will yield the best performance. Our model: Question table which contains fields like id, body, difficulty, and tags. ...
Uri Lukach's user avatar
1 vote
1 answer
80 views

Determining Cardinality in a Logical Model

How should one determine Cardinality in a Logical Model ? Should it be based on how the rows of an entity relate to another entity or should we consider the natural relationship between the entities i....
learner's user avatar
  • 111
1 vote
0 answers
59 views

How to structure SQL data model to maintain data integrity

Background I'm building a Private Chef booking service where you can book a Chef to cook you a custom Menu. I'm having trouble creating a SQL db schema that accurately represents the domain while ...
narciero's user avatar
  • 111
1 vote
0 answers
1k views

Food Delivery Service Database Design Questions

For a school Food Delivery application I am developing, I’m facing some problems during the ER model design stage. I have to fulfil many requirements but my main issues I’m having are the following: ...
Prashin Jeevaganth's user avatar
1 vote
0 answers
229 views

ER Relationship Total and Partial Participation Example

I am trying to understand partial and total participation. Given the statement: "Each restaurant must have one or more dishes and each dish must be provided by exact one restaurant." The below ...
user191864's user avatar
1 vote
0 answers
243 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 ...
Gjert's user avatar
  • 111
1 vote
0 answers
2k 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: ...
mist's user avatar
  • 29
1 vote
0 answers
705 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 ...
Sharad Gaur's user avatar
1 vote
0 answers
175 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 ...
Dinomite07's user avatar
1 vote
0 answers
446 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-...
Yos's user avatar
  • 195
1 vote
0 answers
68 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 ...
A. Camara's user avatar
1 vote
0 answers
194 views

ERD mostly in text

In LaTeX I can replicate database tables similar to the ones in the diagram below, but I do not want to deal with figuring out how to nicely draw the relation diagrams between the tables. Is there an ...
blackened's user avatar
  • 111
1 vote
0 answers
419 views

Basic ERD analysis for a martial arts business domain

I am working on a basic website in order to support querying results from martial arts tournament data. We use participation data to determine things like who gets to host tournaments, regional awards,...
JohnP's user avatar
  • 159