Your SlideShare is downloading. ×
0
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Management Information System 5
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Management Information System 5

559

Published on

Database System

Database System

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
559
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Chapter 5 Database System Mr.Warawut Khangkhan e-Mail: awarawut@hotmail.comSocial Network: www.facebook.com/AjWarawut
  • 2. ˂ F2 Chapter 5 Database System Mr.Warawut Khangkhan
  • 3. ˂ F (File System) ˁ ˁ ˁ ˁ3 Chapter 5 Database System Mr.Warawut Khangkhan
  • 4. F F ˂ F (Bit) (Character) ʽ F (Field) F / (Record) F (File)4 Chapter 5 Database System Mr.Warawut Khangkhan
  • 5. ˆ ˂ F F F (Data Redundancy) F F F (Data Inconsistency) F F F (Data Anomaly) F ˈ F (Data Dependency)5 Chapter 5 Database System Mr.Warawut Khangkhan
  • 6. F6 Chapter 5 Database System Mr.Warawut Khangkhan
  • 7. ˂ F (File System) ˁ ˁ ˁ ˁ7 Chapter 5 Database System Mr.Warawut Khangkhan
  • 8. F (Database System) ˁ ˁ ˁ ˁ8 Chapter 5 Database System Mr.Warawut Khangkhan
  • 9. F (Database System) F F F F F F F (DBMS: Database Management System) F F F F F F F F F F (Database System)9 Chapter 5 Database System Mr.Warawut Khangkhan
  • 10. F F F (Data) F F (Hardware) F F (Software) F F Database Management System : DBMS F F (User) F F Programmer, Database Administrator (DBA) Procedure F F DBA F F10 F F F Chapter 5 Database System Mr.Warawut Khangkhan
  • 11. Application InterfaceProgrammer End User Procedure / DBA Application Query/Report Software Tools Data DBMS Data Repository Dictionary System Hardware Server Software Database11 Chapter 5 Database System Mr.Warawut Khangkhan
  • 12. ˆ F External View 1 View 2 View 3 Level ... Conceptual Conceptual Level Schema Internal Internal Level Schema F F F F Database Physical Data12 Chapter 5 Database System Mr.Warawut Khangkhan
  • 13. External View 1 View 2 View 3 Level ... Conceptual • ˈ F F Conceptual Level • F Schema F F ˈ F F F Internal • F F Internal Level F F Schema • F F F F F F ˈ F ˈ F F F Database Physical Data13 Chapter 5 Database System Mr.Warawut Khangkhan
  • 14. External View 1 View 2 View 3 Level ... Conceptual Conceptual Level Schema • ˈ F Internal • F F F Internal F Level F F F Schema F F • ˈ F F F F F F F • FF F Database F Physical Data F14 F Chapter 5 Database System F F Mr.Warawut Khangkhan
  • 15. External ˈ View 1 View 2 ...F View 3 Level F F F F F Conceptual Conceptual Level F F F F Schema F F FF F Internal Internal Level F Index Schema Record F Database Physical Data15 Chapter 5 Database System Mr.Warawut Khangkhan
  • 16. Mapping ˈ F ˆ F F F ˈ 2 Conceptual / Internal Mapping – F F Conceptual F Record Field F F External / Conceptual Mapping – F Record Field F F F F F16 Chapter 5 Database System Mr.Warawut Khangkhan
  • 17. Mapping ExternalView 1 ExternalView 2 EmpId FName LName Age Salary EmpId LName ProNo ConceptualView EmpId FName LName Age Salary ProNo InternalView struct EMPLOYEE { int EmpId; int ProNo; char FName[15]; char LName[15]; struct date DateOfBirth; float Salary; struct EMPLOYEE *next; } index EmpId; index ProNo;17 Chapter 5 Database System Mr.Warawut Khangkhan
  • 18. F F (Database Management System : DBMS) – ˈ F F F ˈ F F F F F F FF F F F F DBMS18 Chapter 5 Database System Mr.Warawut Khangkhan
  • 19. F DBMS DBMS F F (User View) Schema Subschema Subschema Subschema A B C User 1 User 2 User 3 User 4 User 519 F F F Chapter 5 Database System ˈ F F F F Mr.Warawut Khangkhan
  • 20. F DBMS F F F – F (Data Definition Language : DDL)” DDL ˈ F F F F F F F F F F F F F F F F F F F F F (Data Dictionary: DD)” F F20 Chapter 5 Database System Mr.Warawut Khangkhan
  • 21. F DBMS F F F – F (Data Definition Language : DDL)” F (Data Dictionary: DD) F F F F F F F F F F F F F F F ˈ F21 Chapter 5 Database System Mr.Warawut Khangkhan
  • 22. F F F ˈ F F F ˈ F F F F F F F F F F22 Chapter 5 Database System Mr.Warawut Khangkhan
  • 23. F F F F F F F F F F F F F F F F F F F F F F F F23 Chapter 5 Database System Mr.Warawut Khangkhan
  • 24. F F F F F F F F F F F F F F F F ˈ F F F F F24 Chapter 5 Database System Mr.Warawut Khangkhan
  • 25. F DBMS F F – ˈ F F F F FF Physical Access Path F F F DBMS Logical Access Path “SELECT * FROM student;” F F ˈ F F F “Logical F F25 Access Path (LAP)” Chapter 5 Database System Mr.Warawut Khangkhan
  • 26. F DBMS F F F F F DBMS F F Schema (Manipulation) F F Schema Schema Schema F F A B C F F F F F F ˈ F “DML (Data F F26 Manipulation Language)” Chapter 5 Database System Mr.Warawut Khangkhan
  • 27. F Programmers Users DBMS DBA Application Database Queries Programs Schema DML Query DDL Preprocessor Processor Compiler DBMS Program Database Dictionary Object Code Manager Manager Access File Methods Manager System Database and27 Buffers 5 Database System Chapter Mr.Warawut Khangkhan System Catalog
  • 28. F Programmers Users DBMS DBA Application Database Queries Programs Schema DML Query DDL Preprocessor Processor Compiler DBMS Program Database Dictionary Object F Code ˈ DBMS Manager F Manager ˈ F F F F F Access FileDatabase Manager Methods Manager System Database and28 Buffers 5 Database System Chapter Mr.Warawut Khangkhan System Catalog
  • 29. F Programmers Users DBMS DBA Application Database Queries Programs Schema DML Query DDL Preprocessor Processor Compiler DBMS Program Database Dictionary Object Code Manager Manager Access File F Methods ˈ Manager (Query) F F F F F F F F File System Database andManager Buffers29 Chapter 5 Database System F System Catalog F Mr.Warawut Khangkhan
  • 30. F Programmers Users DBMS DBA Application Database Queries Programs Schema DML Query DDL F Preprocessor F Processor F FCompiler FDBA F F F F F DBMS Program Database Dictionary ObjectF Code F F Access Method Manager Manager Access File Methods Manager System Database and30 Buffers 5 Database System Chapter Mr.Warawut Khangkhan System Catalog
  • 31. F Programmers Users DBMS DBA Application Database Queries Programs Schema DML Query DDL Preprocessor Processor Compiler DBMS F Program DatabaseF DML F Dictionary ˈ ˆ F Object Code Manager Manager F F ˆ F ˆ F F AccessF F File Processor Query Methods Manager System Database and31 Buffers 5 Database System Chapter Mr.Warawut Khangkhan System Catalog
  • 32. F Programmers Users DBMS DBA Application Database Queries Programs Schema DML Query DDL Preprocessor Processor Compiler DBMS Program Database Dictionary F Code Object F DDL Manager F ˈTable Manager Meta-data Table F F Catalog F Access F ˈ F Methods F File Manager F System Database and32 Buffers 5 Database System Chapter Mr.Warawut Khangkhan System Catalog
  • 33. F Programmers Users DBMS DBA Application Database Queries Programs Schema DML Query DDL Preprocessor Processor Compiler Program Database F Catalog Manager Dictionary DBMS Object Code Manager F Catalog Manager F Table Meta-data Access File Methods Manager System Database and33 Buffers 5 Database System Chapter Mr.Warawut Khangkhan System Catalog
  • 34. F DBMS 1. F (Database Size) – F Record 2. F F F (Number of Concurrent Users) 3. (Performance) – F F , F (System Recovery), F34 Chapter 5 Database System Mr.Warawut Khangkhan
  • 35. F DBMS 4. (Integration) – F F F , (Operating System: OS)” 5. (Features) – F F ˈ F F ˈ F DBMS F F F F F F F F DMBS35 F Chapter 5 Database System F F F F F Mr.Warawut Khangkhan
  • 36. F DBMS 6. F F (Vendor) – F F 7. F (Cost) DBMS – F36 Chapter 5 Database System Mr.Warawut Khangkhan
  • 37. F (Database Model) F F F F F F37 Chapter 5 Database System Mr.Warawut Khangkhan
  • 38. F ˈ F F F F F ˂ F ˈ Segment F Segment F FF (Node)” F F F “ (Child Node)” F F F F F (Parent Node)” F F “Root Node” F F F F F F 1 F F F F F F38 F “One-to-Many Relationship” Chapter 5 Database System Mr.Warawut Khangkhan
  • 39. F39 Chapter 5 Database System Mr.Warawut Khangkhan
  • 40. F F F F F F F F F F F F F Linked List F F F (Pointer) F Record F F40 Chapter 5 Database System Mr.Warawut Khangkhan
  • 41. F F F F F F F F F F F 1 F F F F 1 F F F “Many-to-Many Relationship”41 Chapter 5 Database System Mr.Warawut Khangkhan
  • 42. F F42 Chapter 5 Database System Mr.Warawut Khangkhan
  • 43. F F F F F F F F F F F F F F F F ˈ F F F F ˈ43 Chapter 5 Database System Mr.Warawut Khangkhan
  • 44. F F ˈ F F F 2 (Table) F ˈ (Row Record) F (Column ʽ F Attribute) F F F F F F F F Attribute Attribute F F F “Relation” “Table”44 Chapter 5 Database System Mr.Warawut Khangkhan
  • 45. F F45 Chapter 5 Database System Mr.Warawut Khangkhan
  • 46. F ˈ F F F F F F F F (Object)” F Object F F F ˈ F( F Entity) F F F “Attribute” F F F46 Chapter 5 Database System F F F Mr.Warawut Khangkhan
  • 47. F Person name birthdate Student Employee entrydate hiredate Teacher Support47 Chapter 5 Database System Mr.Warawut Khangkhan
  • 48. F F F F F F F F F ˈ F F F F F ˈ F Multi-valued F ˈ F F F48 Chapter 5 Database System Mr.Warawut Khangkhan
  • 49. F ˈ F F F F F F F F ˈ F F ˈ49 Chapter 5 Database System Mr.Warawut Khangkhan
  • 50. F A 18,000 B 15,000 F A 10,000 F B 12,500 A 35,000 B 37,500 F A 25,000 F B 20,000 F A 20,000 F B 18,000 F F A 15,00050 Chapter 5 Database System Mr.Warawut Khangkhan F F B 12,500
  • 51. F 1 (Region) 2 (Season)51 3Chapter 5 Database System (Production Line) Mr.Warawut Khangkhan
  • 52. F F F FF FF F “ (Slicing)” F ˈ F F F Chapter 5 Database System F (Dicing)52 Mr.Warawut Khangkhan
  • 53. F “Slice and Dice” ˈ F FF F F F F (Data Mart and Data Warehouse) F F F (Online Analytical Processing : OLAP)” ˈ FF F F F F F F F F ˈ F F F53 Chapter 5 Database System Mr.Warawut Khangkhan
  • 54. F54 Chapter 5 Database System Mr.Warawut Khangkhan
  • 55. F F (Centralized Database) F DBMS F F F F ˈ F F F F F F F F Central Database55 Chapter 5 Database System Mr.Warawut Khangkhan
  • 56. F (Distributed Database) Database) F DBMS F F F F F ˈ56 Chapter 5 Database System Mr.Warawut Khangkhan
  • 57. F (Distributed Database) F ˈ 2 F F F Homogeneous System - F F F F DBMS F F F F F FF F F F Heterogeneous System - F F F DBMS F F F F F F F F F57 Chapter 5 Database System Mr.Warawut Khangkhan
  • 58. F ˈ F ˈ F F58 Chapter 5 Database System Mr.Warawut Khangkhan
  • 59. F F ˈ 3 (Conceptual Design) (Logical Design) (Physical Design)59 Chapter 5 Database System Mr.Warawut Khangkhan
  • 60. (Conceptual Database Design) ˈ F F F F F ˈ F F Conceptual Schema”60 Chapter 5 Database System Mr.Warawut Khangkhan
  • 61. (Conceptual Database Design) E-R Diagram Class Diagram61 Chapter 5 Database System Mr.Warawut Khangkhan
  • 62. (Logical Database Design) ˈ Conceptual Schema F ˈ Logical Schema F F F F Relation ( ˈ F ) F ˈ Object ( ˈ F ) F F F F F F F F F F F62 F Chapter 5 Database System Normalization” Mr.Warawut Khangkhan
  • 63. (Physical Database Model) Logical Schema F F F F F F F F F “Physical Schema” F ˈ F F63 Chapter 5 Database System Mr.Warawut Khangkhan
  • 64. Normalization F F F ˆ F F Normalization F F F F F F ˈ (Normal Form) ˆ Update F F Normalization 6 F F 1NF, 2NF, 3NF, BCNF, 4NF 5NF (NF –64 Normal Form) Chapter 5 Database System Mr.Warawut Khangkhan
  • 65. Normalization EmpId EmpName DepNo DeptName Salary CourseNo CourseName DateComplete F F Employee F Normalization Employee Department EmpId EmpName DepNo Salary CourseNo DepNo DeptName Course Employee_Course CourseNo CourseName EmpId CourseNo DateComplete F F Employee Normalization65 Chapter 5 Database System Mr.Warawut Khangkhan
  • 66. F F66 Chapter 5 Database System Mr.Warawut Khangkhan
  • 67. F F F F (Minimal Redundancy) F F (Data Inconsistency Avoidance) FF F F (Data Sharing) F F F (Uniform Security Privacy Control) F F F (Integrity Control) FF ˈ F F (Data Independence)67 Chapter 5 Database System Mr.Warawut Khangkhan
  • 68. F68 Chapter 5 Database System Mr.Warawut Khangkhan
  • 69. F (Policy)” F F F F F F Fˈ F F F F F F F (Information Policy) F F ˆ F69 Chapter 5 Database System Mr.Warawut Khangkhan
  • 70. F F F F F ˈ F F F F F ˈ F F F ˈ70 Chapter 5 Database System Mr.Warawut Khangkhan
  • 71. F F F (Data Administration)” F F F F F F F F F F F F Data Governance” F FF F71 Chapter 5 Database System Mr.Warawut Khangkhan
  • 72. F F F F F ˈ F F (Database Administration)”72 Chapter 5 Database System Mr.Warawut Khangkhan
  • 73. F F F73 Chapter 5 Database System Mr.Warawut Khangkhan
  • 74. F (Data Warehouse) F (Data Warehouse) F F F F (Extract) F F F F F F F F F F ˈ F F F F F F F F F ˈ F F F F F F74 F ˈ Chapter 5 Database System Mr.Warawut Khangkhan ˈ F
  • 75. F (Data Warehouse) F F ˈ F F F F F F F F F F F F F F (Data Mart)” F F F F F F F F ˆ F F F F “ F (Data Mining)”75 Chapter 5 Database System Mr.Warawut Khangkhan
  • 76. 76 Chapter 5 Database System Mr.Warawut Khangkhan
  • 77. F (Data Mining) F F F F (Knowledge Discovery)” ˈ F F F F F F F F F F F ˂ F F F F F FF F F77 F Chapter 5 Database System F F F F F Mr.Warawut Khangkhan
  • 78. F (Web Database) F F F F F F F F F F F ˈ ˁ F F F “Static Web” F F F F F ˈ F F F F ˂ F F F ˈ F78 F “Dynamic Web” Chapter 5 Database System Mr.Warawut Khangkhan
  • 79. F (Web Database) F F F F F F F F F F F (Script) F F F F F F FF F F F F F F F F F F F F F F F F F F79 Chapter 5 Database System Mr.Warawut Khangkhan
  • 80. F (Web Database) 1. Server IBM Compatible Client IBM Compatible2. 4. HTML3. ASP HTML80 Chapter 5 Database System Mr.Warawut Khangkhan

×