Skip to main content

Data Hierarchy





In data processing, storage of data is often conceptualized as a data storage hierarchy, which normally consists of the following six levels (see figure).

1.      Bit. The smallest item of data is a single binary digit (a bit), either a 0 or a 1.

2.      Character. Multiple related bits are combined to form a character (or byte). For example, the letter A, the number 4, and the special character $ are characters. Whereas the bit is the basic unit of primary and secondary storage, the character is the basic unit for human perception.

3.      Field. Multiple related characters are combined to form a field. For example, if we are processing employees’ data of a company, we may have an employee-code field, an employee-name field, hours worked field…etc. a field is a meaningful collection of related characters. It is the smallest logical data entity that is treated as a single unit in data processing. Note that a field may sometimes have a single character, such as sex code may be represented as M or F.

4.      Record. Multiple related fields are combined to form a record. For example, an employee record will contain the fields containing the data of an employee, such as employee’s code, name, hours worked…etc. Thus a record is collection of related fields that are treated as a single unit.

5.      File. Multiple related records are combined to form a file. For example, a collection of employee records of a company would be an employee file. Similarly, a collection of all the inventory records of a company forms an inventory file. Thus, a file is a number of related records that are treated as a unit. Notice that every record in a file has the same set of fields. Each record in a file is identified, for storage and retrieval purposes, by a key field whose contents are unique for each record a in a file. In case of our employee file, employee-code field may serve as the key field.

6.      Database. Multiple related files are integrated to form a database. For example, an employee database of an organization may integrate the records of multiple employee files, such as employee salary file containing details of salary and taxation information  of all employees, employee personnel information file containing details of personnel information of all employees. In a database, the data from multiple files are integrated in such a manner so that data redundancy is minimized. For example, in case of the above example of two different employee file, if in each file an employee record contains an employee address field, and if an employee changes his/her residence, the address must be changed in all the files. In a database, the two files will be integrated in such a manner that an employee’s address data is stored only once and made available to all applications. Therefore, only one update will be needed in case of change of address of an employee. In essence, a database is a collection of logically related data elements from multiple files.


Compiled By: Chaudhary Amit V.

Comments

Popular posts from this blog

Characteristics of a Good Programming Language

Till now there are many high level languages which are very popular, and there are others, which could not become so popular in-spite of being very powerful. There might be many reasons for the success of a language, but one obvious reason is the characteristics of the language. Several characteristics believed to be important with respect to making a programming language good are briefly discussed below. Simplicity A good programming language must be simple and easy to learn and use. For example, BASIC is liked by many programmers only because of its simplicity. Thus, a good programming language should provide a programmer with a clear, simple and unified set of concepts which can be easily grasped. It is also easy to develop and implement a compiler or an interpreter for a programming language that is simple. However, the power needed for the language should not be sacrificed for simplicity. The overall simplicity of a programming language strongly affects the readability of the pr...

Angular 4 and Firebase Authentication: Setup

If you have come to this article, it means you are keen to learn new technology and that too Firebase. I love Firebase because it provides all basic but important features of any web application. Take for example, authentication, which is cumbersome and risky if not implemented with utmost care. And when we have the integration of Angular and Firebase, it becomes a lot easier for a developer to build such crucial modules in less time with minimal efforts. In this article we will create a simple Angular application using Firebase. I am going ahead with the understanding that you know the benefits of Firebase and have little knowledge about it. There are plenty of posts out on the web if you are behind. Step 1: Install Angular CLI (if not installed). npm install -g angular-cli Step 2: Create new Angular 4 project. By default now angular CLI will create Angular 4 project so you need not fret. ng new firebase-authentication Step 3: Check whether the ne...

Switch-case, simple calculator . . .

11.      Write a program to perform some mathematic functions with the help of “switch-case” statement. #include<stdio.h> #include<conio.h> void main() { int a,b,ans; char c; clrscr(); printf("\ Enter a and b:"); scanf("%d%d",&a,&b); printf("\n Enter operator:"); fflush(stdin); scanf("%c",&c); switch(c) { case'+':ans=a+b;       break; case'-':ans=a-b;       break; case'*':ans=a*b;       break; case'/':ans=a/b;       break; } printf("\n ans %d",ans); getch(); } 12.      Print the Fibonacci series #include<stdio.h> #include<conio.h> void main() { int a=1,b=1,s=3,c,ch; clrscr(); printf("how many steps="); scanf("%d",&ch); printf("%5d%5d",a,b); for(s=3;s<=ch;s++) {       c=a+b;       printf("%5d",c);       a=b;    ...