post your comment   print   send to a friend
Rate:  94% | Views: 1556
Question categories:  Do It Yourself

What are flat file and relational databases?

 A database is a collection of data, which is organized into files called tables. These tables provide a systematic way of accessing, managing, and updating data. A relational database is one that contains multiple tables of data that relate to each other through special key fields. Relational databases are far more flexible (though harder to design and maintain) than what are known as flat file databases, which contain a single table of data.

To understand the advantages of a relational database, imagine the needs of two small companies that take customer orders for their products. Company A uses a flat file database with a single table named orders to record orders they receive, while Company B uses a relational database with two tables: orders and customers.

When a customer places an order with Company A, a new record (or row) in their table orders is created. Because Company A has only one table of data, all the information pertaining to that order must be put into a single record. This means that the customer's general information, such as name and address, is stored in the same record as the order information, such as product description, quantity, and price. If customers place more than one order, their general information will need to be re-entered and thus duplicated for each order they place.

Whenever there is duplicate data, as in the case above, many inconsistencies may arise when users try to query the database. Additionally, a customer's change of address would require the database manager to find all records in orders that the customer placed, and change the address data for each one.

Company B is much better off with its relational database. Each of its customers has one and only one record of general information stored in the table customers. Each customer's record is identified by a unique customer code which will serve as the relational key. When a customer orders from Company B, the record in orders need contain only a reference to the customer's code, because all of the customer's general information is already stored in customers.

This approach to entering data solves the problems of duplicate data and making changes to customer information. The database manager need change only one record in customers if someone changes addresses.

Customer Feedback
Rate:  94% | Views: 1556 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Web Hosting Company | Custom Design    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    Gallery2
    HTML Validation
    Guest Book
    Live Chat
    Java
    ASP
    Form Mail
    Forums
    CGI scripts
    JavaScript
    Blogs
    Perl scripts
    Image Manipulation
    Thumbnail Generator
    Counter
    Customer Survey
    Search Site Engine
    Linpha Gallery
    MediaWiki
    Sitemap Builder
    TikiWiki
    Online Calendar
    Coppermine Gallery
    Joomla
    Wordpress
Messages
 

Design your website in minutes!

Aplus.Net's do-it-yourself web design tool, WebsiteCreator, enables you to design your website in under 10 minutes - no HTML knowledge necessary! Fast. Easy. Fun. You can use the FREE version of WebsiteCreator or upgrade to more advanced packages for as little as $6.99/mo. Go to the Design tab in the Control Panel to try it now!
More info...

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What databases are and the varieties of database designs
 
2. How do I add a picture to my Web site?
 
3. Where do I get additional Fonts from for my Web design?
 
4. What is superstitial?
 
5. What is interstitial?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest