Monday, March 21, 2011

TYPES OF DATABASE

There are Three main types of database: Flat-file, Hierarchical  Files & Relational Files .
Which is the best one to use for a particular job will depend on factors such as the type and the amount of data to be processed; not to mention how frequently it will be used.


Flat-File
  • Ideal for small amounts of data that needs to be human readable or edited by hand.
  • Used for storing the more complex data types, are also likely to render the file unreadable and un-editable to anyone looking after the database.
  • Split up using a common delimiter.
  • If the data is simple enough, this could be a comma, but more complex strings are usually split up using tabs, new lines or a combination of characters.
  • One of the main problems with using flat files for even a semi-active database is the fact that it is very prone to corruption.
  • There is no inherent locking mechanism that detects when a file is being used or modified, and so this has to be done on the script level.
  •  Even if care is taken to lock and unlock the file on each access, a busy script can cause a "race condition" and it is possible for a file to be wiped clean by two or more processes that are fighting for the lock; the timing of your file locks will become more and more important as a site gets busy.






 Hierarchical Files
  • Store data in more than one type of record.
  • Described as a "parent-child, one-to-many" relationship. One field is key to all records, but data in one record does not have to be repeated in another.
  • This system allows records with similar attributes to be associated together. The records are linked to each other by a key field in a hierarchy of files.
  • Each record, except for the master record, has a higher level record file linked by a key field "pointer". In other words, one record may lead to another and so on in a relatively descending pattern.






Relational Files
  • Connect different files or tables (relations) without using internal pointers or keys.
  •  Instead a common link of data is used to join or associate records. The link is not hierchical. A "matrices of tables" is used to store the information.
  • The tables have a common link they may be combined by the user to form new inquires and data output.
  • This is the most flexible system and is particularly suited to SQL (structured query language).
  • Have functions "built in" that help them to retrieve, sort and edit the data in many different ways.
  • These functions save script designers from having to worry about filtering out the results that they get, and so can go quite some way to speeding up the development and production of web applications.
  • A description of how drives, directories, and files are displayed on an operating system that allows for a large quantity of files and directories to be listed in a small area.










Flat, Hierarchical, and Relational Files Compared



StructureAdvantagesDisadvantages 
Flat Files
  • Fast data retrieval
  • Simple structure and easy to program
  • Difficult to process multiple values of a data item
  • Adding new data categories requires reprogramming
  • Slow data retrieval without the key
Hierarchical Files
  • Adding and deleting records is easy
  • Fast data retrieval through higher level records
  • Multiple associations with like records in different files
  • Pointer path restricts access
  • Each association requires repetitive data in other records
  • Pointers require large amount of computer storage
Relational Files
  • Easy access and minimal technical training for users
  • Flexibility for unforeseen inquiries
  • Easy modification and addition of new relationships, data, and records
  • Physical storage of data can change without affecting relationships between records
  • New relations can require considerable processing
  • Sequential access is slow
  • Method of storage an disks impacts processing time
  • Easy to make logical mistakes due to flexibility of relationships between records
< DATA >

~ typically the results of measurements and can be the basis of graphs, images, 
or observations of a set of variables.

~Data can exist in a variety of forms -- as numbers or text on pieces of paper, as bits 
and bytes stored in electronic memory, or as facts stored in a person's mind.

~ In database management systems, data files are the files that store the database information, whereas other files, such as index files and data dictionaries, store administrative information, known as metadata.
 citation:

 

Internet Movie Database

Internet Movie Database (IMDb) is an online database of information related to movies, television shows, actors, production crew personnel, video games and fictional characters featured in visual entertainment media. IMDb launched on October 17, 1990, and in 1998 was acquired by Amazon.com.





IMDb is a great source if you are looking for the latest news on TV shows, movies, or actors.

Have you wondered what movies your favorite actor or actress is going to star in? IMDb will tell you.

Are you wondering if a sequel to a movie is coming out? IMDb will tell you.

You can't remember the name of a specific episode of a TV show? IMDb will tell you!

IMDb can become your single greatest resource on the internet for entertainment news!


How to Use IMDb the Internet Movie Database?

1. In order to access IMDb, enter www.imdb.com into your address bar. You can also do a Yahoo! or Google search for IMDb. IMDb stands for Internet Movie Database. However, you will find much more than movie information on this site. You can find out news about your favorite TV shows and actors as well.

2. The tabs on the home page of IMDb offer the following: Now Playing, Movie/TV News, My Movies (for those with an account), DVD & Blu-Ray, IMDb TV, Message Boards, and Show Times & Tickets.

3. If you know what you are looking for, you may use the use feature on the IMDb homepage. For example, if you are looking for information on the new Transformers movie, then you can type "Transformers 2" in the search bar. Click "Go".

4. A list of titles matching your search will display. First, the Popular Titles list will display. This is followed by Exact Matches. Here is where you will find the exact match to your search. You will see Transformers: Revenge of the Fallen (2009). The year is when the movie is set to be released. Click the link to access information regarding that movie.

5. IMDb will detail all of the current information on the film. This includes Director, Writers, Release Date, Genre, Plot, Production Status, Cast & Crew, and more.

6. You may also participate in IMDb message boards. However, this will require you to register your information. This is free!

7. If you look at the list of cast members for the movie you are looking for, they will have a link to their own IMDb page. Once you click on their link, their IMDb profile will display, along with all of their movies/TV appearances.

8. Explore the site and have fun. There is plenty to do on IMDb and enough movie/TV/actor news to keep you up-to-date.


Here, let me share with all of you why we need to use database!!!




Citation: