The level of data within a database-- database basics


Levels of Data within a database


The ability to orgranize data and reorgranze data for different purposes is due to two database characteristics: their vast storage potential and the way they organize data. Traditional databases orgranize data in a hierarchical fashion, containing information about entities in the form of fields, records, and files.

Entities

An entity is a person, place, thing, or event. Database files recor information about different entitties using fields, records, and files. A typical entity might be a sales transaction that describes products removed from inventory and the amount of money received for those products. Other examples of entities include student grades, traffic violations, and telephone records.

Fields

The smallest element of data in a database in a field. A field is a ingle value, such as a name, or dollar amount. A field generally has three attributes.

Data type: usually numeric or text (numbers and letters)

Name : assigned by the person developing the database

Size : the nuumber of characters that can be entered

A field called FirstName might have a size of 20-50 characters. The database automatically would truncate any name longer than  20-50 characters to fit into the field. The most common data types are numeric and alphanumeric. Numeric data consists of numbers only. Alphanumeric data consists of letters, numbers, and some times special characters. Other types exist, such as logical yes/no fields, time and data fields, and memo fields, which allow unlimited character input. The more unusual data types include pictures, movies, and sound.

Records

A collection of fields describing an event or situation is called a record. If a record covers maiiling information, it would likely include fields for name, address,city,state, and postal code.

Files

A database files is a collection of records of the same type. When a database is designed and built, the designer must decide what records will be used, which fields will be in those records, and which data type and size each field will have. The record layout is used as the basis for each record in the table

Example

If a company’s database has a record type called CUSTOMER, then there would be a record of CUSTOMER TYPE  for each customer. All the records would use the same set of fields. When all the records of the same type are combined, they become database file.

Comments

Popular posts from this blog

What is Data Warehouse, Fundamentals of Data warehouse and it Architecture

JavaScript Syntax-- semicolon, javaScript Comments and Case sensitivity