Database Design Process

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

  • + Noltech Noltech 1 week ago
    Excellent pice of work. Thanks for the upload.
  • + chomas chomas 3 months ago
    exelent ..pero lo neesito en español...alguien m e ayuda con un arch paresido ...?
Post a comment
Embed Video
Edit your comment Cancel

1 Favorite

Database Design Process - Presentation Transcript

  1. MYSQL 5 Database Design Process
  2. Understanding the Database Design Process
    • Some advantages to good database design
    • Three types of table relationships
    • How to normalize your database
    • How to implement a good database design process
  3. Defining Keys
    • Keys are used to describe the relation between columns. These keys uniquely identify a record.
    • Types of keys:
      • Primary key : is a column in the table which is used as the unique identifier.
      • Composite key : is a primary key having more than one attribute
      • Foreign key : is a key in table which is also the Primary Key in another table.
  4. Normalization
    • Normalization refers to the process of structuring data in order to minimize duplication and inconsistencies
  5. Types of Table Relationships
    • Table relationships come in several forms:
    • One-to-one relationships
    • One-to-many relationships
    • Many-to-many relationships
  6. The employees and departments tables are related through the DeptID key.
  7. One-to-One Relationships One computer is assigned to each employee.
  8. One-to-one relationship in the data model. One-to-one relationship in the data model.
  9. One-to-Many Relationships One department contains many employees.
  10. Many-to-Many Relationships Students take classes, and classes contain students.
  11. The students table and the classes table, unrelated The students_classes_map table acts as an intermediary.
  12. Understanding Normalization Normalization is simply a set of rules that will ultimately make your life easier when you're acting as a database administrator. It's the art of organizing your database in such a way that your tables are related where appropriate and flexible for future growth. The sets of rules used in normalization are called normal forms. If your database design follows the first set of rules, it's considered in the first normal form. If the first three sets of rules of normalization are followed, your database is said to be in the third normal form
  13. Problems with the Flat Table In the case of a database, it's the flat table. A flat table is like a spreadsheet it has many, many columns. There are no relationships between multiple tables; all the data you could possibly want is right there in that flat table. This scenario is inefficient and consumes more physical space on your hard drive than a normalized database students PK StudentsID StudentName CourseID CourseDescription CourseInstructor
  14. First Normal Form
    • The rules for the first normal form are as follows:
    • Eliminate repeating information.
    • Create separate tables for related data.
    Breaking the flat table into two tables
  15. Second Normal Form
    • The rule for the second normal form is as follows:
    • No non-key attributes depend on a portion of the primary key.
    Taking your tables to second normal form
  16. Third Normal Form
    • The rule for the third normal form is as follows:
    • No attributes depend on other non-key attributes.
    Taking your tables to third normal form.
  17. Following the Design Process
    • The general steps in the design process are as follows:
    • Define the objective
    • Design the data structures (tables, fields)
    • Discern relationships
    • Define and implement business rules
    • Create the application
  18. Following proper database design is the only way your application will be efficient, flexible, and easy to manage and maintain. An important aspect of database design is to use relationships between tables instead of throwing all your data into one long flat file. Types of relationships include one-to-one, one-to-many, and many-to-many. Using relationships to properly organize your data is called normalization. There are many levels of normalization, but the primary levels are the first, second, and third normal forms. Each level has a rule or two that you must follow. Following all the rules helps ensure that your database is well organized and flexible. To take an idea from inception through to fruition, you should follow a design process. This process essentially says "think before you act." Discuss rules, requirements, and objectives; then create the final version of your normalized tables. Summary

+ mussawir20mussawir20, 2 years ago

custom

2213 views, 1 favs, 2 embeds more stats

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 2213
    • 2092 on SlideShare
    • 121 from embeds
  • Comments 2
  • Favorites 1
  • Downloads 55
Most viewed embeds
  • 120 views on http://www.mrkindy.com
  • 1 views on http://feeds2.feedburner.com

more

All embeds
  • 120 views on http://www.mrkindy.com
  • 1 views on http://feeds2.feedburner.com

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories