Learn about the basics of databases, how they work, and their role in storing and managing information efficiently.
A database is an organized collection of information that can be searched, sorted, and updated. This data is often stored electronically in a computer system called a database management system (DBMS). Databases typically organize data in rows and columns for easy processing and retrieval. Oftentimes, you’ll need to use a programming language, such as structured query language (SQL), to interact with your database.
Databases are similar to spreadsheets, but there are several key differences. In general, databases are much larger than spreadsheets and so can store more data, and they allow for multiple users to access data at the same time. For these reasons, people who work with data, such as data analysts and data scientists, often work with databases rather than spreadsheets.
Read more: Relational vs. Non-relational Database: The Difference Explained
SQL is a programming language used on almost all relational databases to query and manipulate data. It is still widely used to day for querying databases to access the right data needed, but new languages have begun to appear in this space.
Read more: What Does SQL Stand For?
There are several types of databases, including:
Relational database: A relational database stores and allows access to data. These types of databases are considered "relational" because the items within them have pre-determined relationships with one another. Data is stored in tables, which are connected by unique IDs or "keys." To access specific information, users enter the key to access the data that has been programmed to be related to that key.
NoSQL database (or nonrelational database): A non-relational database (also known as a NoSQL database) stores data in whatever format is best for the type of data being stored. They tend do contain unstructured data, or data that is less defined, like emails, videos, images, and documents. They are called NoSQL because they don't use SQL.
Distributed database: A distributed database stores data in several different physical locations. Processing data in this type of database is spread out. Distributed databases can be homogenous and have the same hardware in each physical location and run the same systems and applications, or they can be heterogenous and have different operating systems in each location.
Object-oriented database: An object-oriented database focuses on organizing objects, rather than actions or logic. Instead of being assigned an alphanumeric value, it would remain its original object type.
Graph database: A graph database is a type of NoSQL database. It stores, queries, and maps relationships according to the graph theory. Graph databases are used to analyze interactions and connections. They consist of nodes and edges, and use a declarative programming language called SPARQL.
Cloud database: A cloud database is built in a cloud to optimize for a virtual work setting and distribution. Organizations tend to be charged based on the amount of storage or bandwidth they use.
Open-source database: These databases are open-source, meaning anyone can contribute or edit the source code. They can be SQL or NoSQL.
Data warehouse: Data warehouses are central repositories for data. A data warehouse is designed to be swift, so users can query and analyze data quickly.
Each database type is characterized by specific storage and retrieval practices, data types, job functions, and use cases.
Learn more about databases from experts at Google:
The different types of databases vary in terms of data structure, data types, and schema. Database schema is a blueprint that outlines a database's architecture, describing how the data inside is organized and how different elements (such as foreign and primary keys, fields, etc.) relate to each other.
All types of databases have the following five components:
Hardware: Database hardware is the physical device that the software runs on, so that users can query and pull data from it. Hardware examples include computers, hard drives, and servers.
Software: From the hardware, database software allows users to manipulate the database for their needs. A database management system (DBMS) manages several databases.
Data: The data itself is a core component of the database. It is the raw information that is stored on the database and managed by database administrators. Users can then access the data to derive meaning for specific teams and projects.
Procedures: Procedures are the rules that determine how the database runs and handles data.
Data access language: Data access languages are programming languages (such as SQL) that are used to control and manage the database. They must align with the DBMS and work in sync.
Gain hands-on experience with gathering, cleaning, and analyzing data using databases and other analytics tools with the Google Data Analytics Professional Certificate on Coursera. Develop skills for an in-demand career in data analytics while you learn at the pace that works for you.
Editorial Team
Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...
This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies enable the website to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.