IT tutorials
 
Office
 

Microsoft Access 2010 : Designing a Database

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Product Key Free : Microsoft Office 2019 – Serial Number
1/30/2012 5:35:01 PM
The most basic object in a database is the table in which you store your data. You might be tempted to jam every type of data you want to store into a single table, but that’s hardly ever the right way to design tables in a database. The following guidelines will help you create efficient tables.



1. One Table per Object

The first rule in creating database tables is to ensure that every table stores data about one type of object, whether that object is a person, a product, or an order. As an example, consider the Suppliers table from the Northwind sample database.

This table has a field for everything you want to know about a supplier, with nothing extra. Consider this alternative design, which adds fields to describe the supplier’s products.

Aside from repeated data, deleting the record representing the last product from a supplier removes all information about that supplier from your database. Rather than risk losing that information, it is much more efficient to create one table for the suppliers and another for the products.



2. Give Every Table a Primary Key

Another important consideration in creating a table is to assign a primary key. This field contains a value that sets a record apart from all other records in the table. In the Northwind database’s Shippers table, that role is filled by the ID field.

It’s also possible to create a primary key made up of more than one field, as in the table shown in the following illustration. (Please note that this table is just a sample; it isn’t in the Northwind database.)

The ProductID field identifies the product and the SupplierID field identifies the product’s supplier. Because you can order the same product from more than one supplier, both the ProductID and SupplierID fields are needed to distinguish a record from all other records in the table.



3. Include Foreign Keys

A final thing you can do to make your tables more efficient is to include primary key fields from other tables, as with the SupplierIDs field in the Products table.

When a primary key from one table is stored in another table, it is called a foreign key. You can use foreign keys to create relationships between tables.

 
Others
 
- Microsoft Outlook 2010 : Sending Text Messages from Outlook & Sending Mobile Alerts from Outlook
- Microsoft Outlook 2010 : Using Alerts and Mobile Features - Setting Up a Text Messaging Service
- Microsoft OneNote 2010 : Upgrading from a Previous Version
- Microsoft Word 2010 : Customizing Word - Changing Advanced Document Properties & Changing Research Options
- Microsoft Word 2010 : Customizing Word - Setting Advanced General Options & Setting Compatibility Options
- Microsoft Project 2010 : Setting Up Resources - Adjusting Working Time for Individual Resources
- Microsoft Project 2010 : Setting Up Resources - Entering Resource Pay Rates
- Microsoft Visio 2010 : Displaying the rule for a selected issue
- Accessing PowerPoint on the Web and Mobile Devices (part 2) - Setting SkyDrive Permissions
- Accessing PowerPoint on the Web and Mobile Devices (part 1) - Setting Up SkyDrive
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us