Questions tagged [erd]

Entity Relationship Diagram (ERD) or Entity Relationship Model is a visual representation of the organization of data within databases or information systems

An Entity Relationship Diagram (ERD) or Entity Relationship Model is a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems.

ERDs can be used to depict two different kinds of models that are closely related, but different in intent. One kind is an analysis model of the subject matter. This model breaks the subject matter down into entities and relationships among entities. Subject matter entities are just subject matter objects by a different name, except that in data analysis, we aren't trying to model the behavior of these objects or entities. Values to be stored in the database can be grouped into attributes, and attributes can be connected to entities and relationships that the attributes describe. This is the ER model as originally developed, and the intent is to describe the problem, not the solution.

Another kind of ERDs is a depiction of the table design of a relational model. This relational model will be eventually fleshed out with physical details, finally resulting in a construction plan for the database itself. While table design is very closely related to ER modeling, it isn't exactly the same thing. for example, normalization is relevant to table design, but not to requirements analysis.

While an ERD can be used for either one of these two purposes, it's useful to decide which of the two purposes one is pursuing before starting in on a diagram.

1159 questions
-2
votes
1 answer

SQL Post Tables

Hey I am trying to set up a table where activities can be shared/posted. There are two options of shares/posts: public and private(friends). I hope somebody can help me out.
-2
votes
1 answer

Should every entity have a primary key? And can we have a sub entity?

Problem: Design an ER diagram where: An item has the attribute: description. An item can be sold by a company or a person. A person has the attributes: name, phone and email. A company has the attributes: company name, address and a contact person…
Louis Tran
  • 1,154
  • 1
  • 26
  • 46
-2
votes
2 answers

Is this an acceptable database design or not?

I created 2 database designs (External & Internal Database). But I'm not sure if that fits in terms of relationship, normalization, logic, redundancy, .... I also created 2 versions of the database design (The first one without mapping table and the…
qws
  • 33
  • 6
-2
votes
1 answer

Need inputs and guidance on Database Design and Associations for Quiz Application

I am porting an old obsolete Java based Quiz application project onto LoopbackJS. Background: It is an MCQ Quiz app for Intelligence Scholarship Examination. Students can register on the app. There will be set number of questions for every grade.…
Dinesh
  • 41
  • 6
-2
votes
1 answer

Is my ER-Diagram for yearly data on trade and transportation OK?

As part of my school project, I'm supposed to design/make a database where one can store/update/retrieve yearly data about international trade and transportation. To begin with, I isolated a small part of the database in order to start…
-2
votes
1 answer

Is this normalized correctly?

I need to normalize this database. This is for an application that will be allowing users to sign up for gaming tournaments that will be hosted at actual locations. When you search for a tournament the user can either register for the tournament,…
-2
votes
1 answer

Does anyone know any sample for this question

I need to create a project that has this kind of request on school but I have no idea how to start, has anyone any samples or anything for help: To compile a database request for a system, the request must be compiled in that form that the design…
-2
votes
1 answer

Total and partial participation in ERD

Let's say that works-in is a relationship between entity types Employee and Department and the cardinality is many to one. Does total participation of Employee in the works-in relationship in other words mean that if I ever put an employee in my…
LearningMath
  • 851
  • 4
  • 15
  • 38
-2
votes
1 answer

How to normalize a recursive relationship? (Conceptual to logical)

conceptual ERD of a recursive relationship
-2
votes
1 answer

What tool was used to create this rails relationship erd diagram?

I have look at the Rails docs and would like to use the same tool to create a relationship diagram like this. does anyone know the tool that was used? rails erd relationship diagram
-2
votes
1 answer

How many entities does Stack Overflow have?

I'm studying Computer Engineering and this year my second-rate and I decided to make Stack Overflow's ER diagrams. How many entities does Stack Overflow have?
-2
votes
1 answer

Appointment system database modelling

I am trying to create an online booking system. I have teachers and students in my system. Teachers specify the date and time they are available for online conversation. Students are able to find available teachers by entering the date, time and…
Hayreddin Tüzel
  • 939
  • 2
  • 9
  • 22
-2
votes
1 answer

Database table relationships with 3 entities

I have three entities in our environment, Account, User and Company. Right now I have tables for account, account_user, account_company, company and user. It seemed fine initially but now that I think about it, it seems like it could be simplified…
jono99
  • 1
  • 1
-2
votes
1 answer

ERD for Payroll

I am attempting to build a database for a company's payroll system. I have worked on an ERD and my main concerns revolve around the loops, reimbursement table and possible weak entities. I haven't done much of these and could use your…
Stephan
  • 39
  • 10
-2
votes
1 answer

ERD best practice for one to many relationships

I'm wondering if there's such a thing as a best practice for one to many relationships. I'm planning a simple rails app that will have a relational DB with either of the following scenarios: Scenario A ERD: A user can have zero or many lists, and a…
codejoe
  • 3
  • 2