DBMS2
DBMS2
Instructor
ID
Name
Salary
The unique attribute (key attribute) is underlined.
Relationship:-
A relationship is an association among several entities.
For example, we can define a relationship advisor that associates
instructor Katz with student Shankar. This relationship specifies that Katz
is an advisor to student Shankar.
A relationship set is a set of relationships of the same type.
We define the relationship set advisor to denote the associations
between students and the instructors who act as their advisors.
A relationship instance in an E-R schema represents an association
between the named entities in the real-world enterprise that is being
modeled.
Instructor Student
ID ID
Advisor
Name Name
Salary Tot_cred
|
|
Student Section
Takes
Result:-
2) Aim:-Listing the tools to draw ER diagrams in both offline and online.
Description:-
Offline tools:-
Microsoft visio:-A popular diagramming tool that provides
various templates and shapes for ER diagrams.
Lucidchart(Desktop Version):-Although primarily online,it also
offers offline capabilities.
Dia:-An open-source diagramming tool with support for ER
diagrams.
Draw.io.Desktop:-The offline version of the popular online tool
for creating diagrams.
Adobe illustration:-While not specialized for ER diagrams,it’s
versatile for creating any visual representation.
OmniGraffle:-A powerful diagramming and graphic design tool
available for macOs.
Pencil Project:-An open-source tool that can be used to create
ER diagrams.
Online tools:-
Lucidchart:-A web-based application with extensive features for
creating ER diagrams.
Draw.io:-An online diagramming tool that supports a wide range of
diagram types,including ER diagram.
Creately:-An online diagram tool that provides templates for ER
diagrams.
Gliffy:-Another online diagramming tool with support for ER
diagrams.
Microsoft visio Online:-The web-based version of Microsoft visio.
SmartDraw:-An online diagramming tool with ER diagram templates.
Miro:-An online collaborative whiteboard platform with
diagramming capabilities.
DBDesigner:-An online tool specifically for designing and managing
ER diagrams and databases.
ERDplus:-A dedicated online tool for creating ER diagrams,relational
schemas and more.
Result:-
3) Aim:-Analyzing the given examples.
Description:-
Faculty Information Chen ERD :-
Analysis:-
Entities:-Common user,faculty information,administrator and
teacher user
Attributes of common user:-id,user name,password
Attributes of faculty information:
id,name,department,school,telephone no.
Attributes of Administrator:-id,username,password
Attributes of teacher user:-id,username,password
Inquiry,Service,Modify all relationships are binary.
Inquiry is the relationship betwwen commom user and faculty
information entities.
Service is the relationship between faculty information and
administrator entities.
Modify is the relationship between faculty information and
teacher user entities.
Inquiry is a many to one relationship.
Modify is a one to many relationship.
Service is a one to one relationship.
Storage System ER Diagram:-
Analysis:-
Entities:-Warehouse,entity name,product,consignee
Attributes of Warehouse:-warehouse code,warehouse
name,contact person,contace information,position
Attributes of Entity name:-
Attribute,Attribute,Attribute,Attribute,Attribute
Attributes of Product:-product no.,arrive batch,product
name,product type,Tag UID,Package UID,Product
quality,production date,in storage date,deadline,warehouse
code,location no.
Attributes of Consignee:-consignee code,consignee
name,address,contact person,contact info
Attributes of Inventory:-Amount
Work,Inventory,Out of storage all relationships are binary.
Work is the relationship between warehouse and entity
entities.
Inventory is the relationship between Warehouse and product
entities.
Out of storage is the relationship between product and
consignee entities.