Proper Planning and Designing of a Database

A properly designed database provides you with access to up-to-date, accurate information. Because a correct design is essential to achieving your goals in working with a database, investing the time required to learn the principles of good design makes sense. In the end, you are much more likely to end up with a database that meets your needs and can easily accommodate change.
This article provides guidelines for planning a database. You will learn how to decide what information you need, how to divide that information into the appropriate tables and columns, and how those tables relate to each other. You should read this article before you create your first database.

                        What is good database design?
Certain principles guide the database design process. The first principle is that duplicate information (also called redundant data) is bad, because it wastes space and increases the likelihood of errors and inconsistencies. The second principle is that the correctness and completeness of information is important. If your database contains incorrect information, any reports that pull information from the database will also contain incorrect information. As a result, any decisions you make that are based on those reports will then be misinformed.
A good database design is, therefore, one that:
  • Divides your information into subject-based tables to reduce redundant data.
  • Provides Access with the information it requires to join the information in the tables together as needed.
  • Helps support and ensure the accuracy and integrity of your information.
  • Accommodates your data processing and reporting needs.

Steps in Properly Planning/Designing of a Database
The design process
The design process consists of the following steps:
  • Determine the purpose of your database    
    This helps prepare you for the remaining steps.
  • Find and organize the information required     
    Gather all of the types of information you might want to record in the database, such as product name and order number.
  • Divide the information into tables    
    Divide your information items into major entities or subjects, such as Products or Orders. Each subject then becomes a table.
  • Turn information items into columns    
    Decide what information you want to store in each table. Each item becomes a field, and is displayed as a column in the table. For example, an Employees table might include fields such as Last Name and Hire Date.
  • Specify primary keys    
    Choose each table’s primary key. The primary key is a column that is used to uniquely identify each row. An example might be Product ID or Order ID.
  • Set up the table relationships    
    Look at each table and decide how the data in one table is related to the data in other tables. Add fields to tables or create new tables to clarify the relationships, as necessary.
  • Refine your design    
    Analyze your design for errors. Create the tables and add a few records of sample data. See if you can get the results you want from your tables. Make adjustments to the design, as needed.
  • Apply the normalization rules    
    Apply the data normalization rules to see if your tables are structured correctly. Make adjustments to the tables, as needed.
AND LASTLY, 

Determining the purpose of your database

It is a good idea to write down the purpose of the database on paper — its purpose, how you expect to use it, and who will use it. For a small database for a home based business, for example, you might write something simple like "The customer database keeps a list of customer information for the purpose of producing mailings and reports." If the database is more complex or is used by many people, as often occurs in a corporate setting, the purpose could easily be a paragraph or more and should include when and how each person will use the database. The idea is to have a well developed mission statement that can be referred to throughout the design process. Having such a statement helps you focus on your goals when you make decisions.


Notes : "90% of this whole article is not of mine. I'm too lazy to do things you know, and I think the website where I got these things has the greatest/coolest idea of Proper Planning and Designing of a Database" - Senpai Gentleman


Mga Komento

Mga sikat na post sa blog na ito

Steps in Creating a Form in MS ACCESS