1 / 18

การทำ Normalization

การทำ Normalization. อ. นุชรัตน์ นุชประยูร. ประโยชน์ของการทำ Normalization. เป็นเครื่องมือที่ช่วยในการออกแบบฐานข้อมูลแบบเชิงสัมพันธ์ ทำให้ทราบว่ารีเลชันที่ออกแบบมานั้น ก่อให้เกิดปัญหาหรือไม่และด้านใดบ้าง ถ้ารีเลชันที่ออกแบบมานั้นก่อให้เกิดปัญหาจะมีวิธีแก้ไขอย่างไร

tamma
Download Presentation

การทำ Normalization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. การทำ Normalization อ. นุชรัตน์ นุชประยูร

  2. ประโยชน์ของการทำ Normalization • เป็นเครื่องมือที่ช่วยในการออกแบบฐานข้อมูลแบบเชิงสัมพันธ์ • ทำให้ทราบว่ารีเลชันที่ออกแบบมานั้น ก่อให้เกิดปัญหาหรือไม่และด้านใดบ้าง • ถ้ารีเลชันที่ออกแบบมานั้นก่อให้เกิดปัญหาจะมีวิธีแก้ไขอย่างไร • เมื่อผ่านการแก้ไขแล้ว อาจจะรับประกันได้ว่ารีเลชันนั้นจะไม่มีปัญหาอีกหรือถ้ามีก็จะมีน้อยลง

  3. ขั้นตอนการทำ Normalization

  4. First Normal Form : 1 NF นิยาม รีเลชั่นใดจะอยู่ในรูปแบบนอร์มัลระดับที่ 1 (1 NF) ได้ รีเลชั่นนั้นจะต้องไม่มีกลุ่มข้อมูลซ้ำอยู่

  5. ลักษณะการเกิด Repeating Groups

  6. Functional Dependency : FD

  7. Partial Dependency

  8. 2 NF

  9. ทรานซิทีฟดีเพนเดนซี

  10. Job_Class Job_Class 3 NF E_Name E# Chg_Hour

  11. BCNF

  12. การแปลงให้อยู่ในรูป 3 NF และ BCNF

  13. ข้อมูลที่อยู่ในระดับ 3NF แต่ไม่เป็น BCNF

  14. ตัวอย่างการแปลง 3 NF ให้เป็น BCNF

More Related