Skip to main content

Questions tagged [erd]

Filter by
Sorted by
Tagged with
2 votes
2 answers
1k 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 "...
Ibrahim Abou Elenein '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
0 votes
0 answers
1k 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 ...
Trelaquix's user avatar
0 votes
0 answers
67 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 ...
omneuro's user avatar
0 votes
1 answer
494 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?
James's user avatar
  • 3
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
0 votes
1 answer
55 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-...
beginsql's user avatar
0 votes
1 answer
95 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 ...
beginsql's user avatar
0 votes
1 answer
291 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 ...
Hilarius Andriano'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
0 votes
1 answer
658 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 ...
Nightstar479's user avatar
0 votes
1 answer
275 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 ...
JS3's user avatar
  • 125
0 votes
0 answers
690 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 ...
sniper809's user avatar
0 votes
0 answers
1k 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 ...
olimpiabaku's user avatar
0 votes
4 answers
20k 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 ...
Student's user avatar
2 votes
1 answer
48 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, ...
programming_ritual's user avatar
0 votes
2 answers
271 views

I'm trying to create a database for a hotel company with multiple hotels. I'm stuck on how to reserve a room?

I'm using Xampp phpmyadmin for the first time... So I've got the basics of the database. Customers, hotels, rooms etc. The customer can chose a check-in and check-out date. An admin can class a date ...
Katie's user avatar
  • 1
1 vote
1 answer
299 views

Where to start learning the IDEF1X method of model notation?

I recently started learning about data modeling. After seeing @MDCCL's diagrams and thoughtful approach here, I'm interested in learning more about IDEF1X. I don't want to pay $200+ for the ISO ...
SeaDude's user avatar
  • 111
1 vote
1 answer
105 views

Are these two ERDs the same? Do they represent the same thing? [Weak entities and multi-valued attributes]

What I want to create is a table in a database for employees in a company. Each employee has a unique identifier ID and a name. Each employee also has a list of skills, the skills are represented as a ...
user avatar
-1 votes
1 answer
215 views

What is the correct way to organize tables for a SQL view?

I'm new to data modeling. Currently working at creating a personal contact manager but I need some help with modeling the table relationships for a given view. The final view columns I'm shooting for ...
SeaDude's user avatar
  • 111
0 votes
1 answer
291 views

How can I categorize entites by their age in an entity relational diagram?

I am designing an entity relational diagram and I need to categorize entities in groups by their age. What I have is an entity of Person and some personal attributes about it. But I want to have ...
user avatar
0 votes
2 answers
3k views

How to model weak entity in ER diagram?

I was going through the weak entity concepts and was trying to model the relation Hotel has many rooms. I have come up with the partial solution presented below but i'm having a problem to uniquely ...
Surya Bhusal's user avatar
0 votes
2 answers
265 views

multiple entities that share a table

I have this situation where i have two different entities, Researcher and Lab Manager and i want for a both to have a profile. When a user logs in he could be one of the two entities, and searching in ...
awovu netux's user avatar
1 vote
1 answer
50 views

What will be the relation between Employees and Players, given that some players are also Employees?

I have a requirement where I need to store information on Employees in a company that owns(?) a sports team and also store information on Players from other teams that are not Employees of this ...
chimmy102's user avatar
0 votes
1 answer
74 views

Help needed to design an ER diagram [closed]

I want to design an ER diagram in order to create a database for a small local business. My problem is that the bussiness sells merchandise to persons and businesses both. How can i differentiate ...
Kos's user avatar
  • 3
0 votes
1 answer
620 views

Designing User & its Sub User Database Diagram Problem [duplicate]

There are some business category e.g. Travel Agency, Hotel, Car Rental etc. Roles: Management rolesSuper Admin, Staff Customer side roles are Owner, admin and sales counter May be etc. customer side ...
Murteza's user avatar
0 votes
1 answer
216 views

B2B application: users has its own users

B2B Scenario I am trying is that: The following Roles exists in the system: Super Admin Super Admin Staff Owner (client) Admin (owner i.e. client and creates admin to define sales counters) Sales ...
Murteza's user avatar
-1 votes
1 answer
272 views

ER Diagram Design

I need Help in making ER diagram that i made a ER diagram of each seperate or making it combine I made it seprate as image attached but how to combine and make it one ER diagram. Module – 1: User ...
Nouman Akram's user avatar
0 votes
1 answer
60 views

Non-product invoice items

I am having difficulty representing additional charges in an invoice. I understand how to represent the association between an invoice and individual items in that invoice with the use of a ...
Thanos's user avatar
  • 103
1 vote
2 answers
455 views

Anonymous and Public User Table Design in twitter like application

I have schema design problem which I am not 100% sure if my assumptions are correct. So the requirements are: I need to have 2 different type of user, anonymous and public. A user can have both ...
suchcodemuchwow's user avatar
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
0 votes
1 answer
7k views

Is my way of creating a entity relationship diagram correct?

From what I understand, 1)table customer and table order should have a one to many relationship since customer has orders. 2)table order and table payment should have a one to many relationship since ...
Khishigdelger Ganbold's user avatar
0 votes
1 answer
27 views

How can instructors add users to their classes and at the same time not know all of the institution users?

I have the following entities Institutions - with institutionID and userID Institution Users - with institutionUserID Institution Classes - with institutionUserID, institutionID Institution Class ...
Tiago Peres's user avatar
0 votes
1 answer
39 views

Entity whose possible types differ in the FK

I have one entity called "Groups". "Groups" can be of different types and the difference between each type is the FK. For instance, if a "Group" is of type "Event ...
Tiago Peres's user avatar
0 votes
2 answers
787 views

Financial database model

I am completely new to database modelling (except for some academic knowledge from a long time ago) but for my new project I want to build a database for the following application. I am collecting ...
SDR3078's user avatar
0 votes
1 answer
161 views

"Tuples in a weak entity set are partitioned according to their relationship with tuples in a strong entity" - meaning?

http://web.cs.ucla.edu/classes/fall04/cs143/solutions/chap2.pdf In the above link, there is the following statement - "Tuples in a weak entity set are partitioned according to their relationship ...
Rishabh Gupta's user avatar
1 vote
1 answer
355 views

Weak entity having n instances as the 'one'

I'm struggling with a question, I'm just trying to figure is it even valid , if not where does it violates the rules of a weak entity relationship, I think it's not valid because how can a weak entity ...
Abdulrahman's user avatar
3 votes
2 answers
2k views

One and only one relationship - ER diagram to relational schema

I'm taking this term a DB course as part of my CS studies. This week we began studying the subject of ER diagrams, which I find a bit confusing. I have some uncertainty about the picture above (Note: ...
HelpMe's user avatar
  • 33
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
0 votes
2 answers
89 views

Multiple Primary-Foreign Key connections between Tables Redundant?

I have two tables, Reviews and Critic I'm pretty new to RDBMS and I was wondering if the connection between Review.rID and Critic.Review is redundant? My reasoning is that a single critic can have ...
Prithvi Boinpally's user avatar
-1 votes
1 answer
2k views

Database scheme design for complex movie system

I'm creating a complex app for cinemas including frontend and reservation system. I struggle with a DB scheme and this is a worst part for me, I was never good in designing DB's. Easily said it's a ...
Guesso's user avatar
  • 1
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
0 votes
1 answer
119 views

Issues Designing ER Diagram

I'm trying to design an ER diagram in the relational database module of my course. We were given a scenario to draw a diagram for and then create a database within Access. I have the database covered, ...
Mika Asport's user avatar
0 votes
1 answer
544 views

Domain of Attributes for an Entity?

I am new to DBMS and was reading about the ER Model and entities-attributes. I found the following line in the book which I was reading: The domain of Composite attributes is the cross product of ...
Chris's user avatar
  • 11
1 vote
1 answer
19k views

How do I represent foreign key in an Extended ER Model in Chen notation?

This is a spin-off of the question at How to represent foreign key in an ER diagram? which is too vague about the needed notation. There the idea of underlining FKs with a dotted line is stated. I ...
questionto42's user avatar
2 votes
1 answer
529 views

Modelling a relationship which has multiple one-to-many parents

I am attempting to model a relationship which could have two parents, one of them being optional, and the other being mandatory. The design should have the following rules, A House must exist as the ...
wow's user avatar
  • 123
2 votes
1 answer
8k views

Chat/conversation history, entity relationship diagram

Totally aware that there are very similar questions, went through each of them, but those are pretty simple/basic solutions from where i took some things and ideas to create below entity relationship ...
Srle's user avatar
  • 123
1 vote
1 answer
801 views

Is it possible for total participation constraints to be enforced by an attribute?

For a school Food Delivery application I am developing, I've been told to use the most accurate ER model that captures as many constraints as possible. In particular, I have decided to enforce a given ...
Prashin Jeevaganth's user avatar
1 vote
1 answer
4k views

What is the Relationship between Instagram users and user followers

I'm building a blog project, which each user can follow other users. I'm still figuring out the design and creating the diagrams first. I know that the relationship between users and followers is many ...
camille's user avatar
  • 125
0 votes
1 answer
971 views

Weak Entities + Partial Keys + 2NF [closed]

I'm a bit confused on the concept of weak entities and normalization and couldn't find any answers online. I know that generally weak entities have a partial key to uniquely identify its own records ...
user6461080's user avatar

1
2
3 4 5
8