The document provides a practical guide for creating Entity-Relationship (ER) diagrams using the Dia Diagram Editor, including installation instructions and step-by-step construction of an ER diagram for a database called 'Courses and Students'. It outlines the process of defining entities, attributes, and relationships, as well as exporting the created diagrams. Additionally, it includes exercises for constructing ER diagrams for various systems such as a Bank Management System and a Library Management System.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
40 views
DBMS Lab File
The document provides a practical guide for creating Entity-Relationship (ER) diagrams using the Dia Diagram Editor, including installation instructions and step-by-step construction of an ER diagram for a database called 'Courses and Students'. It outlines the process of defining entities, attributes, and relationships, as well as exporting the created diagrams. Additionally, it includes exercises for constructing ER diagrams for various systems such as a Bank Management System and a Library Management System.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
PRACTICAL -2
TITLE: Creating Entity-Relationship Diagram using case tools
2.1 Objective 2.2 Theory (Installation Dia Guide) 2.3 Construction of ER diagram
LOBJECTIVE: Applying tool to create ER model
2.THEORY AND CONCEPTS:
Introduction to Dia Diagram Editor:
a. Installation Guide
1, Download the installation file for your platform from hitip:/dia-installer del
2. Open the downloaded file, select preferred installation language, and press “OK”.
installer Language
sy Heme set alenguage
3. The Dia “Setup Wizard” window will appear. Click “Next”,
Te =
Welcome to the Dia 0.97.1 Setup
Wizard
lsreamended ote ci tate setaine
‘eae sarge ete
Sree
cient ce,
4, In the “Livense Agreement” window click “Next” to continue installation.
IsLUcense Aareement
ece reve me eanse tens before netaleg D397.
ree Pace Down to oe the rect of he arcemert
"Crary rich wees pases a apes) wien by Jones Hass,
eqnatre oft Coan 1 Apt 2989
‘Ty etan,Presdert of ee
[is Gone PicLens does nt semitincrsorash your ara nto
isd. Lisreemsed unde the GPL fers, The fers sprovied her for nferton
Durpses ony. ClekNest to crarue
‘Chose uhh feature of 097.2 yuan te naa
1
Cenc he corporents ou nant ital rtunchec the components you dent nant
Fetal. Chccee fo contre
Stectoncorensbisol E= |
oles
Priconaupin
spice ecired 20%
6. Choose the installation location on your computer and click “Install”.
167. After the installation process is completed, click “Finish”.
oe
—_M~ | ine —- seta”
wens al } on
aa k=
= | mae | I 7
b.Dia User Guide
Create an ER Diagram
In this section, basic guidelines are given on how to create ER database diagrams. An ER diagram
consists of entity sels, attributes, and the relationship sets between entity sets. Let us create an ER
diagram for a database called “Courses and Students”. The database will have two main entity sets,
i.e, “Course” and “Student”. The relation between them defines which students belong to which
1. Start Dia Diagram Editor.
=
72. On the left side of the menu click on the dropdown menu, select “Other sheets” and click on “ER”.
3. Now the menu consists only of shapes that are relevant to an ER diagram,
im 3
4, Let us create an entity called “test”, Choose the “E” icon with a single frame in the shapes
menu and click on the drawing space at the center. A rectangle with the name “Entity” will
appear,
185. Double-click on the new entity set and the properties window will show up (or right-click and
choose “Properties”). Change the name of the entity set to “test” and click “OK”. The entity sets
name will be changed.
6. The “Course” entity set has several attributes: “test_id” (primary key), “tile”, “ECTS”, “level”,
“language”. In the shape menu select the “A” icon with an oval around it and click near the
created “test” entity set. An oval with the name “Attribute” will appear.
7. Double-click on the attribute and in the properties window change the name to “test_id”. Since
this attribute is also a primary key, select “Key” value “Yes”. Click “OK”,8. In the shape menu click on the “Participation” icon and connect the entity set with the attribute. It is
also possible fo connect an entity set with an attribute using different connectors, Choose the
appropriate style atthe end of a new connector by clicking on “arrow style at the end of the line
new lines”. Select “line (L)" connector,
9. Proceed with the rest ofthe attributes of the entity set “test” with attribute like “test_id”,
“test_name”, “date”, “result”, “time” and “doctors” with “name”, “specialization” and “D_id”
2010, Create the relationship set between “test” and “doctors” withthe name “performed_by”
uses
Tome
11.Complete the ER diagram by adding patient and relationships.
eoave cxalacam: «i
[+ Sea feta
au‘The ER diagram for database “Hospital” was ereated successfully!
Note: Save your diagram several times through all the creation process!
Export Created Diagram
1. Open the diagram you want to export
2. Click on “File >Export™. Enter the name of the file, select the location you want the file to be
saved, determine file type (e.g. SVG), and click “Save”
3. ‘The created diagram tree:
3. Construction of ER diagrams:
1. Construct an ER diagram for a Bank Management System,
2. Construct an ER diagram for a Departmental store.
3. Construct an ER diagram for a Library Management System,
2