Nepedia
Back to Discover
Advanced Reader
💻

Database

technology Maturity 11-13 Next article →

A database is an organized collection of related data. To interact with this information, we use a database management system, or DBMS. The DBMS is a set of computer software that acts as an interface. It allows users and applications to capture, analyze, and manage the data. When you combine the database, the DBMS, and the associated applications, you have a complete database system.

Database models
Database models

While people often use the word "database" to refer to the whole system, technically it refers to the stored data itself.

A DBMS performs four essential functional roles to keep information useful. First, it handles data definition. This involves creating, modifying, and removing the rules that dictate how data is organized. Second, it manages updates. This includes the insertion, modification, and deletion of the actual data entries. Third, the system performs retrieval. Users send a query, which is a specific request for information, to select data based on certain criteria. Finally, the DBMS handles administration. This role includes monitoring users, enforcing security, and maintaining data integrity during unexpected system failures.

Process of database design v2
Process of database design v2

Database technology has evolved through three distinct eras. The first era was the navigational era. In the mid-1960s, systems used hierarchical or network models. These models relied on pointers, which are often physical disk addresses, to follow relationships between records. In the second era, the relational model became dominant. This model organizes data into ledger-style tables. The third era is the post-relational era. This includes object databases and the NoSQL databases that became popular in the 2000s.

CodasylB
CodasylB

Before digital storage was common, people used physical methods to organize information. Index cards were used for many different tasks. Families used them for recipes and shopping lists. Businesses used them for project research and contact information. In schools, they served as flash cards for visual aids. Academic researchers used card files for bibliographical citations. Professional book indexers used these cards until indexing software emerged in the 1980s and 1990s.

Relational key SVG
Relational key SVG

In 1970, a researcher named Edgar F. Codd proposed a revolutionary idea. He worked at IBM and was unhappy with the navigational models of that time. He felt the lack of a dedicated "search" facility was a major problem. Codd proposed the relational model, which organizes data into tables with rows and columns. Each table represents a different type of entity. Instead of following physical links, users search for data based on its actual content. This method uses mathematical principles known as relational calculus.

DVD Rental Query
DVD Rental Query

The relational model relies on a specific structure to maintain accuracy. Each table has a set of columns containing attributes of an entity. One or more columns are designated as a primary key. This key uniquely identifies each row in the table. When different tables need to connect, they use these primary keys to cross-reference information. This design ensures that each fact is only stored once. This process, called normalization, makes updating the data much simpler and more efficient.

Database models
Database models

Modern databases vary greatly in scale and complexity. Small databases might live on a simple file system. Large-scale databases are often hosted on computer clusters or in cloud storage. Physical database servers are dedicated computers that run the DBMS. These are often multiprocessor machines with large amounts of memory. They may also use RAID disk arrays to ensure storage remains stable. In very large environments, hardware accelerators are used to speed up transaction processing.

Process of database design v2
Process of database design v2

Today, several types of database models exist to meet different needs. Relational databases remain very popular and use a language called SQL. Famous examples include IBM Db2, Oracle, MySQL, and Microsoft SQL Server. In the 2000s, NoSQL databases emerged to provide different query languages and faster performance. Some systems, called NewSQL, try to combine the high performance of NoSQL with the structured model of SQL. These different technologies allow us to manage everything from a mobile phone to massive global networks.

644 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (5)
File:DVD Rental Query.png
DVD Rental Query.png
File:CodasylB.png
CodasylB.png
File:Relational key SVG.svg
Relational key SVG.svg
File:Process of database design v2.png
Process of database design v2.png
File:Database models.jpg
Database models.jpg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.