Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
What to do ?
How to do ?
What kind of Data should be
considered?
ER Diagram Practical Example
Prepared By…
Rahul Khanwani
...
Entity
Weak Entity
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Key Attribute
Composite
_________
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Derived Attribute
Multi valued Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Entity
Rahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Employee
number
Name
Attributes
Rahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Employee
number
Name Birth Date Age Salary
Key AttributeRahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Employee
number
Name Address Age Salary
Composite
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Employee
number
Name Address Age Salary
Multi Valued
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Employee
number
Name Address Age Salary
Single Valued
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Employee
number
Name Address Fax No /
Tele. No
Salary
Null Valued
AttributeRahul Khanvani Binarybuzz.Wordp...
Table: Employee
Employee
number
Name Birth Date Age Salary
Derived
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Table: Employee
Employee
number
Name Birth Date Age Salary
Stored
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Entity
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Attributes
Emp_no
Birth Date
Age
Salary
Name
Rahul Khanvani Binarybuzz.Wordpress.com
Key
Attribute
Emp_no
Employee
Birth Date
Salary
Name
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Key
Attribute
Emp_no
Birth Date
Salary
Name
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Emp_no
Name
Salary
Name
Multi valued
Attribute
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Multi valued
Attribute
Emp_no
Name
Salary
Name
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Address
Composite
AttributeRahul Khanvani Binarybuzz.Wordpress.com
Employee
Name
Composite
Attribute
Street
Address
Area
City
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Emp_no
Birth Date
Age
Salary
Name
Derived
Attributes
Rahul Khanvani Binarybuzz.Wordpress.com
Employee
Derived
Attributes
Emp_no
Birth Date
Age
Salary
Name
Rahul Khanvani Binarybuzz.Wordpress.com
RelationshipWorks
Link
Rahul Khanvani Binarybuzz.Wordpress.com
Manager
Mno Name
Salary
Birth
Date
Department
Mno Dname
Works
11
1 To 1 RelationshipRahul Khanvani Binarybuzz.Wordpress.com
Employee
Empno Name
Salary
Birth
Date
Department
Empno Dname
Works
1M
Many To 1 RelationshipRahul Khanvani Binarybuzz.Word...
Employee
Empno Name
Salary
Project
PId Ptype
Works
NM
Many To Many Relationship
Start
date
End
date
Rahul Khanvani Binaryb...
ER Diagram Of Banking System
Bank
Bank
branch
Branc
hes
Account
Acct no
Balanc
e
Acc
Type
Accts Loans
Loan
Loan
no
Amount
...
Continue… Account Loan
Customer
SSn
Name
Addres
s
A_c L_c
n
M
n
M
Phone
Rahul Khanvani Binarybuzz.Wordpress.com
Thank You…
Rahul Khanvani
Binarybuzz.Wordpress.com
Upcoming SlideShare
Loading in …5
×

Er diagram practical examples

30,538 views

Published on

Published in: Technology, Business

Er diagram practical examples

  1. 1. What to do ? How to do ? What kind of Data should be considered? ER Diagram Practical Example Prepared By… Rahul Khanwani BinaryBuzz.Wordpress.com Rahul Khanvani Binarybuzz. Wordpress. com
  2. 2. Entity Weak Entity Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  3. 3. Key Attribute Composite _________ Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  4. 4. Derived Attribute Multi valued Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  5. 5. Table: Employee Entity Rahul Khanvani Binarybuzz.Wordpress.com
  6. 6. Table: Employee Employee number Name Attributes Rahul Khanvani Binarybuzz.Wordpress.com
  7. 7. Table: Employee Employee number Name Birth Date Age Salary Key AttributeRahul Khanvani Binarybuzz.Wordpress.com
  8. 8. Table: Employee Employee number Name Address Age Salary Composite Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  9. 9. Table: Employee Employee number Name Address Age Salary Multi Valued Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  10. 10. Table: Employee Employee number Name Address Age Salary Single Valued Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  11. 11. Table: Employee Employee number Name Address Fax No / Tele. No Salary Null Valued AttributeRahul Khanvani Binarybuzz.Wordpress.com
  12. 12. Table: Employee Employee number Name Birth Date Age Salary Derived Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  13. 13. Table: Employee Employee number Name Birth Date Age Salary Stored Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  14. 14. Employee Entity Rahul Khanvani Binarybuzz.Wordpress.com
  15. 15. Employee Attributes Emp_no Birth Date Age Salary Name Rahul Khanvani Binarybuzz.Wordpress.com
  16. 16. Key Attribute Emp_no Employee Birth Date Salary Name Rahul Khanvani Binarybuzz.Wordpress.com
  17. 17. Employee Key Attribute Emp_no Birth Date Salary Name Rahul Khanvani Binarybuzz.Wordpress.com
  18. 18. Employee Emp_no Name Salary Name Multi valued Attribute Rahul Khanvani Binarybuzz.Wordpress.com
  19. 19. Employee Multi valued Attribute Emp_no Name Salary Name Rahul Khanvani Binarybuzz.Wordpress.com
  20. 20. Employee Address Composite AttributeRahul Khanvani Binarybuzz.Wordpress.com
  21. 21. Employee Name Composite Attribute Street Address Area City Rahul Khanvani Binarybuzz.Wordpress.com
  22. 22. Employee Emp_no Birth Date Age Salary Name Derived Attributes Rahul Khanvani Binarybuzz.Wordpress.com
  23. 23. Employee Derived Attributes Emp_no Birth Date Age Salary Name Rahul Khanvani Binarybuzz.Wordpress.com
  24. 24. RelationshipWorks Link Rahul Khanvani Binarybuzz.Wordpress.com
  25. 25. Manager Mno Name Salary Birth Date Department Mno Dname Works 11 1 To 1 RelationshipRahul Khanvani Binarybuzz.Wordpress.com
  26. 26. Employee Empno Name Salary Birth Date Department Empno Dname Works 1M Many To 1 RelationshipRahul Khanvani Binarybuzz.Wordpress.com
  27. 27. Employee Empno Name Salary Project PId Ptype Works NM Many To Many Relationship Start date End date Rahul Khanvani Binarybuzz.Wordpress.com
  28. 28. ER Diagram Of Banking System Bank Bank branch Branc hes Account Acct no Balanc e Acc Type Accts Loans Loan Loan no Amount Loan Type 1 M 1 M 1 M Bno Addr Nam e Code Addr Rahul Khanvani Binarybuzz.Wordpress.com
  29. 29. Continue… Account Loan Customer SSn Name Addres s A_c L_c n M n M Phone Rahul Khanvani Binarybuzz.Wordpress.com
  30. 30. Thank You… Rahul Khanvani Binarybuzz.Wordpress.com

×