The Wayback Machine - https://web.archive.org/web/20240818153236/https://www.geeksforgeeks.org/data-storage-and-querying-in-dbms/
Open In App

Data Storage and Querying in DBMS

Last Updated : 24 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Database Management System is the collection of interrelated data/information or a set of programs that manages controls, and accesses the use of data. Through DBMS, users can manage the data efficiently in a database to increase accessibility and productivity. For example – Employee records and telephone Books have all the different contacts saved in a single place very efficiently.

So, a Database System is a software system, having an organized collection of structured information, stored in a computer system. It enables the user to create, maintain, define, and control access to the database.

Uses of DBMS

  • To increase productivity through real-time component data.
  • For Reducing the data redundancy and inconsistency.
  • To enhance the data integrity.
  • For Retrieving the data.
  • For Data Security.
  • For Data Indexing.

For more details, you can read the article  Application of DBMS.

The Database System is further divided into two components. They are as follows:

  • Data Storage Manager
  • Query Manager

Data Storage Manager

Data Storage Manager also known as “Database Control System”, is generally a program that provides an interface between the data/information stored and the queries received. It helps us to maintain the integrity and consistency of the database by applying the constraints. It is a highly flexible and scalable product that provides us with the capability of fully managed storage.

Storage Manager is generally in charge of the interactions with the File Manager, where raw data is stored on the data with the help of the file system. It translates various DML statements into low-level commands.

  • Authorization and Integrity Manager: The main purpose of the Authorization and Integrity Manager is to ensure the satisfaction of the integrity constraints and checks the authority of users to access information.
  • Transaction Manager: The main purpose of Transaction Manager is to ensure that even after the system failures, the database should remain in a uniform state.
  • File Manager: The main purpose of File Manager is to manage the allocation of space on the disk storage.
  • Buffer Manager: The main purpose of Buffer Manager is to fetch the data from disk storage into the main memory. The buffer manager is a critical part of the database system since it enables the database to handle data sizes that are much larger than the size of the main memory.

The storage manager implements several data structures as part of the physical system implementation:

  • Data files, which store the database itself.
  • Data dictionary, which stores metadata about the structure of the database, in particular the schema of the database.
  • Indices, which can provide fast access to data items. Like the index in this textbook, a database index provides pointers to those data items that hold a particular value. For example, we could use an index to find the instructor record with a particular ID, or all instructor records with a particular name. Hashing is an alternative to indexing that is faster in some but not all cases.

Query Processor

Query Processor contains the following three components:

  • DDL Interpreter: The DDL Interpreter is the Data Definition Language Interpreter which is used to build and modify the structure of your tables and other objects in the table. DDL interpreter, which interprets DDL statements and records the definitions in the data dictionary.
  • DML Compiler: DML Compiler is the Data Manipulation Language which is used for adding (inserting), deleting, and modifying (updating) data in a database. or we can say translating the DML statements into query language consists of low-level instructions that only query engines can understand. A query can usually be translated into any of a number of alternative evaluation plans that all give the same result. The DML compiler also performs query optimization; that is, it picks the lowest cost evaluation plan from among the alternatives.
  • Query Evaluation Engine: It executes the low-level language instructions, generated by DML Compiler.

Conclusion

In Conclusion, maintaining and obtaining valuable information from massive datasets depends on efficient data storage and querying in DBMS. A strong database system is successfully implemented and maintained with careful attention to data integrity and security, scalability concerns, query optimization, and suitable storage structure design.



Similar Reads

Querying Data from a Database using fetchone() and fetchall()
The fetchone() and fetchall() are the methods of Python MySQL connector and they are used to display data. This connector helps in enabling the Python programs to use MySQL databases. In the below code, we have used MySQL using Python for writing all the queries and fetching all the data from the databases. 1. Fetchone(): Fetchone() method is used
3 min read
Difference between Cloud Storage and Traditional Storage
1. Cloud Storage : Cloud storage is the storage option in which we use remote drives to store the data at the cloud location used by the client. It also uses the network to store the data to an off-site server which is owned by the service provider. User uses this storage options for capacity, bandwidth, and remote access. Features of Cloud Storage
2 min read
Querying in NoSQL
NoSQL is termed non-SQL. We won't use SQL to write queries in No SQL. It is not relational but it gives us an organized way of storing data. The data is stored in the form of documents rather than tabular form. The best example for NoSql is Mongo DB. In SQL we will use the term key-value pairs but in Mongo DB we will use field-value pairs. Document
2 min read
Network attached storage in DBMS
With the phenomenal growth in digital data, particularly generated from multi-media and other enterprise application the need for high-performance storage solution at low cost has become extremely important. Network Attached Storage (NAS) devices are basically among the latest of storage devices being used for this purpose. These devices are in fac
4 min read
Storage Types in DBMS
The records in databases are stored in file formats. Physically, the data is stored in electromagnetic format on a device. The electromagnetic devices used in database systems for data storage are classified as follows: Primary MemorySecondary MemoryTertiary Memory 1. Primary MemoryThe primary memory of a server is the type of data storage that is
7 min read
Volatile Storage in DBMS
Volatile memory in the context of Database Management Systems (DBMS) causes the stored data to be lost depending on whether there is a source of power or none. Just when the engine is put in a standby or shut-down situation, any data stored in volatile memory vanishes. The comparison is drawn with a non-volatile storage method which stores the data
10 min read
Non-Volatile Storage in DBMS
An integral part of the DBMS world is non-volatile storage, which is responsible for keeping information reliable and longer-lasting. This article focuses on high-detailed knowledge about DBMS non-volatile storage systems, comprising definitions, explanations, and insights by only using the material written by oneself and not copying from third par
7 min read
Data Marts (storage component of HDFS)
Datawarehouse and Data Mart, both are storage components of HDFS. Data mart is such a storage component which is concerned on a specific department of an organization. It is a subset of the data stored in the datawarehouse. Data mart is focused only on particular function of an organization and it is maintained by single authority only, e.g.m finan
4 min read
Difference between Row oriented and Column oriented data stores in DBMS
Row-oriented and column-oriented data stores are two different approaches to storing and organizing data in relational database management systems (RDBMS). Row-Oriented Database work by organizing the data into rows and Column-Oriented Databases work by organizing the data into columns. Row-Oriented DatabaseIn a row-oriented data store, data is sto
4 min read
Data Objects, Attributes and Relationships in DBMS
Data Model is an abstract model that represents the data objects, data flow between these data objects, and the interrelationship between these data objects. It is a way of storing data on a computer so that it can be used in a more efficient manner for further purposes. Data model or data structure consists of following fundamental elements: 1. Da
3 min read
Building a Data Warehouse in DBMS
A Data warehouse is a heterogeneous collection of different data sources organized under unified schema. Builders should take a broad view of the anticipated use of the warehouse while constructing a data warehouse. During the design phase, there is no way to anticipate all possible queries or analyses. Some characteristic of Data warehouse are: Su
5 min read
What is Data Inconsistency in DBMS?
The database is the collection of structured records that are used in various scenarios to gain useful insights, perform CRUD operations, and many other things. The data stored in the Database is in the form of rows and columns, we mostly call them as records. There are various tables that store and represent the data/records to the user. In these
4 min read
Data Isolation in DBMS
In today's era effectively managing volumes of data is crucial, for businesses and organizations. Database Management Systems (DBMS) play a role in this aspect by providing tools to store, retrieve, and manipulate data. However when multiple users are. Their transactions interact with the data simultaneously ensuring the integrity and consistency o
5 min read
Data Replication in DBMS
Data Replication is the process of storing data in more than one site or node. It is useful in improving the availability of data. It is simply copying data from a database from one server to another server so that all the users can share the same data without any inconsistency. The result is a distributed database in which users can access data re
7 min read
How DBMS Reduces Data Redundancy?
Answer: DBMS reduces data redundancy by using the techniques of normalization and the concept of primary and foreign keys. Database Management Systems (DBMS) play a crucial role in minimizing data redundancy, which optimizes storage, improves data integrity, and simplifies data management. Normalization TechniquesDBMS uses normalization to organize
1 min read
Data Models in DBMS
A Data Model in Database Management System (DBMS)  is the concept of tools that are developed to summarize the description of the database. Data Models provide us with a transparent picture of data which helps us in creating an actual database. It shows us from the design of the data to its proper implementation of data. Types of Relational ModelsC
8 min read
What is Data Abstraction in DBMS?
Data Abstraction is one of the most important concepts in DBMS. Data abstraction is the process of hiding unwanted and irrelevant details from the end user. It helps to store information in such a way that the end user can access data which is necessary, the user will not be able to see what data is stored or how it is stored in a database. Data ab
3 min read
What are the Strategies for Data Migration in DBMS?
Data Migration means moving digital data. It is the process of transferring data to a different location, file type, media, storage system, database or application. Almost every company regularly migrates data due to system upgrades, increased data volume, improved system performance, and business process changes. Why is Data Migration Strategy Imp
5 min read
How DBMS Stores Data?
Answer: DBMS stores data hierarchically on disks with records in files, accessed via indexes using optimized formats and secured transactions. Tables: Data in a DBMS is stored primarily in tables, where each table represents a specific entity or relationship.Rows and Columns: Tables consist of rows (records) and columns (attributes), with each row
1 min read
What is Data Independence in DBMS?
Data independence is a property of a database management system by which we can change the database schema at one level of the database system without changing the database schema at the next higher level. In this article, we will learn in full detail about data independence and will also see its types. If you read it completely, you will understan
5 min read
What is XML Data Model in DBMS?
The database management system market is filled with many choices, and XML is a strong contender due to the elegant syntax model it uses to organize and structure data. The text would give you information on the main parts of the Data Model for XML, thus, you would be able to understand the essential terms and why they are important in databases. T
6 min read
What is a View? How it is Related to Data Independence in DBMS?
In DBMS, View is a virtual table that is created using specific rows of one more table. View does not create a new table with these entries, it only presents the selected rows together. Views are used to hide sensitive information from users. Views are used to display the information that is needed by the user, all other information that is sensiti
6 min read
WOS and ROS storage in HP Vertica
Vertica is unique in many ways, one of which can be seen in its data storage model. Vertica uses two distinct structures for storing data: WOS storage (Write Optimized Row Storage), and ROS storage (Read Optimized Column Storage). These are explained as following below. 1. WOS : In Vertica, WOS stands for Write Optimized Store. The WOS is an in-mem
1 min read
Components of Storage Area Network (SAN)
Components of Storage Area Network (SAN) involves 3 basic components: (a). Server (b). Network Infrastructure (c). Storage The above elements are classified into following elements like, (1). Node port (2). Cables (3). Interconnection Devices (4). Storage Array, and (5). SAN Management Software These are explained as following below. 1. Node port:
3 min read
Benefits of Content-Addressed Storage
Content-Addressed Storage (CAS) has emerged as an alternative to tape and optical solutions because it overcomes many of their obvious deficiencies. The features and benefits of CAS include: Content Authenticity: It assures authenticity by generating a unique or special content address for stored objects. Content authenticity is assured because the
2 min read
Storage Snapshot Technology
Storage : Storage is defined as process/procedure in which digital data is saved within data storage device by means of computing technology. Storage is technology that empower computer to retain data, either temporarily or permanently. Snapshot : Snapshot is state of system at particular point of time. It can refer to actual copy of state of syste
4 min read
Storage Definition Languages (SDL)
DBMS supports many languages out of which (SDL) is one of them. SDL stands for Storage Definition Language. SDL matter is almost anything that's not specified by SQL standard. It is different in every DBMS which specifies anything to do with how or where data in relevant table is stored. It's applications are as follows : Used to define internal sc
2 min read
Storage Area Networks
A dedicated, fast network that gives storage devices network access is called a Storage Area Network (SAN). SANs are generally made up of several technologies, topologies, and protocols that are used to connect hosts, switches, storage elements, and storage devices. SANs can cover several locations. Data transfer between the server and storage devi
8 min read
Introduction of Relational Model and Codd Rules in DBMS
Pre-Requisite: Relational Model in DBMS It was proposed by Dr. E.F. Codd. It uses the concept of relations to represent each and every file. Relations are Two-Dimensional Tables. It is easy to implement and easy to simplification in the operations to manipulate the data. This is the most popular data model. It is simple to implement. It uses the pr
12 min read
Introduction to TimeStamp and Deadlock Prevention Schemes in DBMS
Deadlock occurs when each transaction T in a schedule of two or more transactions waiting for some item locked by some other transaction T' in the set. Thus, both end up in a deadlock situation, waiting for the other to release the lock on the item. Deadlocks are a common problem and we have introduced the problem while solving the Concurrency Cont
7 min read
Article Tags :
three90RightbarBannerImg