Types of database management systems:
Hierarchical databases
Network databases
Relational databases
Hierarchical Databases
It is very fast and simple. In a hierarchical database, records contain information about their groups of parent/child relationships, just like as a tree structure. It is like >your folder structure on the laptop. Every folder can contain sub-folder and each sub-folder can still hold more sub-folders. Finally, in some folders we will store files.
In the above diagram the Root node is the main folder and children nodes are the subfolders.
Advantages
- Hierarchical database can be accessed and updated quickly .Because the paths are predefined.
Disadvantages
- It is Difficult to manage.
- It has Complex implementation.
Network Databases
A network databases are mainly used on a large digital computer. In the network model, entities are organized in a graph, in which some entities can be accessed through several paths. In this children are called members and parents are called occupier.
In the network database the relationships among the data in the database is many-to-many.
Advantages
- Easily accessed because of the linkage between the information.
- Easier to navigate and search for information because of its flexibility.
Disadvantages
- Difficult for first time users.
- Users feel risky while searching the data first time.
Relational Databases
In this data is stored in the form of tables. The relationship between the data files is relational. Data in relational databases is stored in different access control tables, each having a key field that mainly identifies each row.
Database Management System
Components of a database
A database includes several components like object, tables, queries, and reports. An object can be anything in the real world.
Tables: These are the basic building blocks of any relational database. A table is a collection of rows and columns.
- The data can be stored in a table. Rows are called as records and columns are called as fields. Tables are used for storing and retrieving the data.
Field: It is a column of the table, which stores the specific information like customer address, and student address.
Record: It is a collection of data items of all the columns. It stores the information about one entity like a person and company. It is also known as tuples and the number of tuples in a relation is called as the cardinality of the relation.
Queries: A query refers to a question about the data and is used to retrieve the information.
- A query includes the information about fields and records.
Forms: These are used to view and edit the data.
Elements of Database: A database includes various elements like,
Entity: Entity is an object that exists in the real world and is represented by rectangles. It Includes the entire information of the data.
Examples: customer buy goods, in this customer and goods are the entities.
Entity set: It is a collection of similar entities, which can share the same properties.
Example: Student is an entity set of all student entities.
Attributes: These are the properties of the entity that can be represented in an elliptical shape. These can be represented by columns in a table.
Examples: ITEM entity properties like code, and prize.
Relationship: A relationship is a union among various entities. In this, entities are related to each other. It is represented in a diamond shape. The relationship can be divided as One to one, one to many, and many to many.
E-R Diagram: It is the representation of entities and relationship between them.
Architecture of database
Data Abstraction: It hides certain details about the data. This is also known as data model, which is a collection of conceptual tools for describing the data and that is divided into three levels.
- Physical level: This is the low level of data abstraction. In this, it explains the physical representation of data and describes how the data is actually stored on the computer. This is also known as internal level.
- Logical level: This is a high level data model, which can view the complete representation of the database. It can describe what type of data can be stored in the database. This is also known as conceptual database.
- View level: This is the highest level of the data abstraction and explains the intercommunication between the user and the system. In this, a specific data can be seen by various users in various ways at the same time.
Advantages of DBMS
- Data Redundancy: It refers to the data repetition, also known as duplication of data. The DBMS contains unique information and cannot make duplicate copies of the data.
- Data security: DBMS provides security tools like username and password. It permits the users to access the database through the authorized channels.
- Data Integrity: DBMS maintains the data integrity and protects the correct data of database. In this, data can be used by many users at a time, which makes it easy to retrieve the data.
- Data Inconsistency: The data inconsistency can be avoided in a centralized system. Inconsistent database can result in incorrect and clashing data.
- The data inconsistency occurs at the time of data duplication, which means the inconsistency is result of data redundancy. If data redundancy is removed, then inconsistent data is also removed.
Disadvantage of DBMS
- Cost of Hardware and Software: A processor needs high speed of data processing and memory to access the DBMS software. It needs to upgrade the hardware and software, which means the database may need to purchase additional storage space. The hardware and software are very costly.
- Complexity: The database designers, developers, database administrators and end-users can understand the functionality and creates additional complexity and requirements. The database is quite costly and demanding.
- Performance: The performance of the DBMS is very high, but the DBMS provides server for some applications so a few applications may not keep running as fast.
- Database failure: In this, data is integrated with a centralized database. If the database is interrupted for any reason, then the valuable data may be lost or the entire system will collapse.
Uses of DBMS
- Banking: It utilizes the DBMS to store the customer information, accounts, loans, and other banking transactions.
- Airlines: In this, the DBMS can be used for reservation and schedule the information about airlines.
- Universities: In universities, student details including the course, registration, grades are stored in the DBMS.
- Telecommunication: In this, DBMS is used for keeping records of calls and generating mobile bills.
- Human Resources: The DBMS is used for recording information about employees, salaries, designations, tax, and benefits.
- Sales: In this, DBMS is used for customer, product and purchase information.