Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [database-diagrams]

The tag has no usage guidance.

1
vote
0answers
15 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 ...
-1
votes
0answers
34 views

What steps do you follow in making an entity-relationship diagram (ERD)? What do you look for? [closed]

I need to make an ERD and would like some tips on how I can make it? Are there specific things that I need to look out for, or that have to be added?
1
vote
1answer
69 views

SQL Server Database Diagram

I am using SSMS v18, I need to create an ER diagram from my database. As Microsoft removed diagram from new version of SSMS (v18) so now How can I get a diagram for my database??
0
votes
1answer
26 views

Is there a place to store ERDs in Postgres?

Is there a designated spot in Postgres to store Entity-Relationship Diagrams (ERDs)? I could just create a table with a BTYEA column or something, but I want to make sure to use what exists if ...
2
votes
2answers
55 views

Does the relationship between teams and matches have a many-to-many cardinality ratio?

Diagram I created the following diagram: Considerations So I will create two tables, one called Match and the other one called Teams. In Match there will be data about two teams, Away and Home. ...
1
vote
1answer
37 views

How to avoid losing information via UPDATEs due to database design issues

Business requirements I have a database where information about documents and their related packages are kept. Each document can have multiple packages, and each package has its details and product ...
0
votes
1answer
212 views

Is it possible to change the color of relationship lines in MySQL Workbench diagrams?

I have MySQL Workbench Community Edition 8.0.15 installed on my Mac OS 10.14.3. I'm currently working on making an ERD with Workbench's EER Diagram. My problem is that whenever I export my diagram, ...
0
votes
1answer
52 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
19 views

Relationship constrains in EER

When designing a EER diagram, how do you state or show a specific relationship constraint between entities (or can this even be done). We have a relationship between two entities E and F, but for a ...
0
votes
0answers
86 views

Multiple tables for different types of transactions?

Considering a trading system as an example. Would it make sense to have two different tables for credit transactions and asset transactions? creditTrans : table id userId transType status amount ...
0
votes
1answer
111 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
219 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: ...
2
votes
0answers
111 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
vote
0answers
146 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 ...
2
votes
1answer
394 views

Do you know if this are examples of non-identifying or identifying relationships?

Im using MySQLWorkbench to model a diagram. But Im with some doubts about identifying and non-identifying relationships. It seems that all relationships of the project are identifying. For example, a ...
0
votes
2answers
42 views

payment table in relational datase

I have to model a database table for payments. These need to have two fields payment from and payment to and this needs to link to two tables one is clientA and clientB as in the representation below. ...
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 ...
0
votes
1answer
1k views

MySQL WorkBench SQL : Cannot Add Foreign Key Constraint (Error 1215) while creating database

Problem: I am receiving the Error 1215: Cannot add foreign key constraint error while running my MySQL schema code generated from the EER Diagram I used to model my database. The Error occurs ...
1
vote
1answer
542 views

How do I change where database diagram relationship lines attach in MySQL Workbench?

Sometimes, MySQL Workbench makes some strange choices about where table relationship lines get attached. For example, two vertical lines would be better in the following: For a while, these boxes (...
1
vote
1answer
97 views

Representing a many-to-one relationship in a database diagram

I have two tables loadingDetail, and stowageDetail: loadingDetail | stowageDetail [PK] loadingID (int) | [PK] StowageID (int) [PK] transactionID (in) | [PK] room (int) ...
2
votes
1answer
159 views

Scripting Creation Of Database Diagrams

Is it possible to script the creation of a database diagram using T-SQL? If not, what is the Database Diagram Designer doing when you use it to save / edit a diagram (is it using PowerShell or some ...
1
vote
0answers
184 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,...
0
votes
0answers
47 views

Issue with diagrams in sql management studio 2014

I have this issue with sql management studio 2014. When creating a new database diagram and when I add existing table to a new diagram, the data inside a table is obsolete. I tried both dragging a ...
3
votes
0answers
29 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 ...
1
vote
1answer
784 views

Feedback on an entity-relationship diagram for a movie theater business domain

I have an assignment due next week, and for that assignment I am supposed to learn MySQL and create an entity-relationship diagram (ERD). My current attempt Now I've made this ERD The issue I ...
1
vote
1answer
649 views

Modeling an entity-relationship diagram about Clients, Orders, Payments and Bills

There is a part of an entity-relationship diagram creation that troubles me, I don't know if it's ok. I tried to follow these instructions: A client makes an order (which has products). When the ...
0
votes
0answers
484 views

In an ER diagram, do all entities need to be connected?

I am building a model DB of an online store. I have obvious tables such as Customers, Stores, Products, etc... I made an ER diagram, but I realized that my Employees table is sitting out by itself ...
1
vote
0answers
24 views

PostgreSQL table relationship clarification

I am in the process of setting up table relationships, using a relational diagram provided by our vendor, in PostgreSQL 9.5.3 and am seeking clarification on how to relate a child table that serves ...
2
votes
3answers
1k views

How to interpret ternary relationship

I have tried to search online on how to interpret these ternary relationships but haven't found any clear answer. Since I don't understand how to interpret it I am having trouble changing it into ...
1
vote
1answer
189 views

Modeling a Recursive Association for Linking an Entity Type to Itself

I am designing a simple database as follows: The database should contains an evolving set of standards; each standard has a library of controls; A single control in each standard may map to one or ...
0
votes
2answers
233 views

Entity-Relationship Conceptual Data Model [closed]

So I am busy learning databases for an rpg I have been thinking of to learn more specialized techniques with game development itself. Now I am trying to draw a conceptual data model to get things ...
0
votes
1answer
35 views

M:M Relationships

I have question regarding joining tables using composite keys. If I have two tables: "Sales" and "Items" with a M:M relationship between them and my data schema included a joining table called "...
6
votes
1answer
929 views

Postgres 9.6 export the database structure as pdf [closed]

Is there any tool/software the can export all the tables structure (column names , its datatype ) in the database as a pdf/excel/word. additional diagram export will be added advantage.
2
votes
1answer
79 views

Understanding Table design in database [closed]

I have 3 years of SQL Server development work experience. Now I am moving to a new company (first jump). I heard in my new company they deal with too many tables. What is the best way to understand ...
2
votes
0answers
84 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 ...
-1
votes
1answer
3k views

How to generate Database Diagram using script?

I need to create a SQL script to generate a Database diagram. It should accept two parameters: DB name Schema It should create a database diagram in Database Diagrams folder with the underlying ...
0
votes
1answer
87 views

EER Design specification

I just started learning about Databases, and my first assignment has information about an Art Museum that we are supposed to use to define a DB for, demonstrated with an EER Diagram. One ...
2
votes
2answers
84 views

Two paths between two entities

In my db the entities are: designed_object: a generic designed object designed_object_param: a parameter related to the designed object with the type (param_type), the default value (param_value), ...
0
votes
1answer
117 views

Query For All Constraints in a SQL Database Diagram

Is there a way to show constraints in a SQL Server db diagram? Like for example, in a card number, it shows there is a CHECK constraint etc..
5
votes
2answers
266 views

How can I represent the entity types depicted in an ERD as relations with attribute names?

I have created the entity-relationship diagram (ERD) shown below (for brevity, each individual bubble-shaped box portrays multiple attributes): Considering such an ERD, I have to convert each entity ...
7
votes
1answer
850 views

How to model a Letter Transportation business context in a database diagram?

I am trying to crate entity-relationship diagram for a transport company database. This database should store information about letters, deliveries, moving letters from one warehouse to another, and ...
0
votes
1answer
633 views

Generate database diagram from SQL Server with no proper integrity

So... I've ended up in a project, which by far is the worst quality POS I've seen in a long while. It is basically a Visual Basic .NET windows client application used for various administrative tasks ...
3
votes
1answer
734 views

Ternary Relationship or (n-ary)

I'm trying to find the difference in terms of modeling a ternary relationship v/s a binary relationship in the following case. Any piece of advise would help me a lot. Company has editors who are ...
0
votes
1answer
2k views

I Need Help With My Database Design for Product Management

I'm designing a MySQL database and the front end for my work. The database will store all of the products that we sell on our marketplaces and their relevant data. We will be able to lookup products ...
2
votes
0answers
496 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?
3
votes
0answers
667 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 ...
1
vote
0answers
240 views

ER Diagram - Choose One or Both of the Entities

So I am attempting to create an ER Digram for a certain catering service. Two of the entities are "Lunch Menu" and "Dinner Menu". Each catering reservation (entity) must contain either one of the two, ...
2
votes
1answer
51 views

Can someone please tell me where I went wrong for an exercise submission?

I recently submitted an assignment in a group for our databases class and we lost points on one of the exercises and the correction is unclear. If someone could examine the question, the submission ...
5
votes
3answers
5k views

How do I read ERD Notation (crow's feet) to convert to Natural Language?

Background I am attempting to insure I understand how to read ERD (Entity Relationship Diagram) notation so I can convert it to a natural language explanation. I'm trying to insure I can explain a ...