Professional Documents
Culture Documents
1
Figure 1-1a Data in context
vStructured data
includes numbers, text, dates.
Numeric data (numbers), this type of data consists numeric
digits from 0-9. It may either be positive or negative.
6
Data Vs Information
v Data unprocessed raw v Information is processed
facts form of data
v Data is meaningless v Information is meaningful
v Data is the input of v Information is the output
computer of computer
v Data is extensive in its v Information is short in
volume volume
v Data is used rarely v Information is frequently
used
v Data is independent v Information is dependent
v Data is not functional in on data
decision making v Information is functional
in decision making
7
Entity & Its types
Entity
“An entity is a person, place, object, event or concept in the
user envirment about which the organization wishes to
maintain data”
8
Entity & Its types
Some Examples of Entities
vPerson : employee, Student, Player, Doctor, Patient
vPlace : Country, City, Store
9
Entity & Its types
STUDENT
STUDENT entity may have the attributes
S_Name, F_name, Address, Class, DOB etc
10
Entity & Its types
For example
11
Entity & Its types
Entity type:
STUDENT
STUDENT_ID INT(4)
S_NAME CHAR(30)
F_NAME CHAR(30)
ADDRESS CHAR(40)
DEPARTMENT_NAME CHAR(30)
CLASS CHAR(25)
BIRTHDATE DATE
12
Entity & Its types
Entity Instance: “A single occurrence of an entity
type”
OR
“A member of an entity type is known as an entity
instance”
Example:
Two instances of STUDENT (Entity Type)
See example on next page
13
Entity & Its types
14
Entity & Its types
15
Entity & Its types
STRONG ENTITY VS WEAK ENTITY TYPES
Strong Entity Type:
“An entity type that exist independently of other entity types”
16
Entity & Its types
17
Entity & Its types
v A weak entity type has no business meaning in the
ER Diagram without the entity on which it
depends.
18
Entity & Its types
v A weak entity type does not have its own
identifier, Generally on an ERD a weak entity type
has an attribute that serves as a partial identifier.
19
Entity & Its types
EMPLOYEE DEPENDENT
Dependent_name
E_ID
(first_name,
E_Name middle_name,
last_name)
DOB
22
Entity & Its types
v The above Fig ,can be represented in more simple form as
23
Attributes & its types
v Attribute – “property or characteristic of an
entity type that is of interest to the
organization”
v Each entity type has a set of attributes
associated with it.
v In Entity Relationship Diagram(ERD) we
represent an attribute with sign of ellipse.
Attribute Symbol in
ERD
24
Attributes & its types
v Following are the some entity types and
their associated attributes
I. STUDENT
[ Student_ID, Student_Name, Home_Address,
Phone_Number]
II. EMPLOYEE
[Employee_ID, Employee_Name,
Designation, Department].
25
Attributes & its types
v Innaming attributes, we use an initial
capital letter and other are in lower
case.
STUDENT
Phone_Number
27
Attributes & its types
v Types of Attributes:
-Simple Attribute
-Composite Attribute
-Single valued Attribute
-Multi-Valued Attribute
-Derived Attribute
-Stored Attribute
28
Attributes & its types
-Simple Attribute: “An attribute that can not
be subdivided into smaller component is
known as simple attribute”
Fig shows
STUDENT entity
and their
attributes(simple
attributes)
29
Attributes & its types
30
Attributes & its types
Example-2
31
Attributes & its types
Single-valued Vs Multi-valued Attribute:
Single-valued attribute: “An attribute that may
contain single value”
e.g. Age of a person is a single-value attribute, also
gender is the example of single-value attribute.
32
Attributes & its types
33
Attributes & its types
Derived Attribute: “an attribute whose value can be calculated
from other related attribute”
The following fig show s the derived attribute
Multivalued:
Derived an employee can have
from date employed and current date more than one skill
34
Attributes & its types
Stored Attribute: “An attribute that is stored in a
database is called stored attribute”
35