I have designed a relational model for a university database which is given below.
now I am asked to make an ER Diagram of this database. I just want to know that is there any tool using which I can generate the ER diagram from the relational schema. if no, what are the steps to make an ER diagram from a relational model?

Relational Schema to ER Diagram
16.8k Views Asked by Sadman Rizwan At
1
There are 1 best solutions below
Related Questions in RELATIONAL-DATABASE
- Creating Relationship Creates Additional Columns in MySQL Workbench
- normalize table up to BCNF?
- Handling relationships with React Query
- Entity Core Framework - what is the difference between HasColumnType and HasPrecision?
- Calculating the sum of differences between two columns in Laravel
- Django - Create a model that holds aggregated Foreign Key values
- Database design for social media app: Handling multiple post types and timeline creation performance
- SQL Database Table relation based on multiple conditions
- NextJS Prisma and MongoDB relation
- Repeat the foreign keys or use two tables related as a one-to-one
- Finding items that match multiple LIKE keywords
- How should I structure my entities and not get the circular reference problem/error?
- How does MySQL compute keys for underlying tree structure
- How to write query for a condition on join table
- `"Key "0" in object with ArrayAccess of class does not exist` error after change of computer
Related Questions in ENTITY-RELATIONSHIP
- When an E-R attribute should be perceived as a relationship attribute or as an entity set attribute?
- How do i normalize the given entities in the database ER diagram. And also shouldn't normalization be done before making the ER diagram?
- I need help in creating a ER model for my database
- NER grouping into objects
- Issue with Setting Relationships in Business Entity when Creating New Business with Associated Services and Workers
- How to model composite primary keys in the ER model?
- An associative Entity with optional participation on one side and mandatory participation on the other
- ER diagram: total participation and identifying relationship
- Were the entity sets and their associated relationships accurately and properly constructed?
- ER diagroms Composite Key representation in m;n relationship
- Kotlin [Hilt] java.lang.reflect.InvocationTargetException (no error message) Error
- Adding relationship to an Entity couses weird ORM mapping error
- Is this a correct foreign key relationship standard?
- Is combining a Junk Dimension with a Conformed Dimension in a single table advisable for efficient data management?
- Why is my slicer not filtering values correctly for me for 2 different matrix?
Related Questions in ER-DIAGRAM
- Normalisation for database ER diagram
- Creating ER diagram for SQL Server database
- ER Model clarification of my diagram
- Transfer mysql to access including relationships and foreign keys?
- relating entities in an ER diagram
- Relational Schema to ER Diagram
- How to create relational mapping when an entity has more than one multivalued attribute in ER Diagram
- Database design: multiple unary relationships on same entity
- Relationship with same entity - ER Diagrams
- Using ONLY Entity Relationship Diagram to Query MYSQL Format [BRAIN CHALLENGE]
- ER Diagram Entity without attribute
- Relations in ER diagram
- Looking for an ERD for this three-way relationship
- ER diagram relationship and Bridge Tables
- Representing multiple candidate keys in RM
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't know of any tools that can generate a proper ER diagram from a relational model. One difficulty for such tools is that not all relational models can be interpreted as ER models. While the relational model can express any finite set of facts (since it's equivalent to first-order logic), the entity-relationship model is more limited.
To convert a relational model into an ER diagram, I'd suggest the following steps:
A good understanding of the ER model will be valuable. Study Chen's paper
The Entity-Relationship Model - Toward a Unified View of Data.For each column, determine whether it represents an entity set or a value set. Entity keys are normally primary keys in one table and foreign keys in others. Values sets generally represent labels and measurements, and are in dependent columns.
teacher,T_IDanddept_nameare entity keys, whilenameandpasswordrepresent value sets.Identify relationships. Relationships are represented by two or more entity keys in the same table, at least one of which is part of the primary key.
teacher, the pair(T_ID, dept_name)represents a relationship between the entity sets identified byT_IDanddept_name. We can call those entity setsteacheranddepartment, but don't confuse them with the tables that have the same names. Another example isadvisor (T_ID, S_ID).Identify attributes. Attributes are mappings from entity sets or relationships to value sets. The primary key of a table will determine the entity or relationship set (atomic or composite PK), with which the dependent columns (value sets) are associated, forming attributes.
teacher,T_ID -> nameis an attribute, andT_ID -> passwordis another.Make a diagram. Represent each entity set with a rectangle and each relationship set with a diamond. Connect relationships to the related entity sets. Draw keys and attributes as ovals attached to the determining entity or relationship set. We don't draw keys for relationships - they are determined by the keys of the associated entity sets.
This is just a basic starting point - the process is actually more complicated, since we need to look out for weak keys, weak entity sets, identifying relationships, associative entity sets, total or partial participation, and relationship cardinality.
Again, I highly advise you to study Chen's paper for all the detail.
PS. I believe your primary key for
section(and the corresponding foreign keys inteachesandtakes) is incorrect. I suspect the primary key should be onlysec_id, but since I have no sure knowledge of what your model actually represents (beyond my own interpretation of the table and column names), I can't say for sure.