Topics in this sectionIntroduction to Databases and DBMS2 topics
- Concept of Database
- Types of Database Management Systems
A database management system (DBMS) is software that allows you to create, store, organize, and manage data. Different types of DBMS are designed for different purposes, and knowing which one to use helps you handle data effectively.
RDBMS is the most common type of database. It organizes data into tables with rows and columns. Each row represents a record, and each column represents a specific attribute. Tables are connected through common fields, which is why it is called "relational."
Key features:
- Data is stored in structured tables
- Uses Structured Query Language (SQL) to manage data
- Ensures data accuracy through rules called constraints
- Supports relationships between tables
Popular examples: MySQL, PostgreSQL, Oracle, Microsoft SQL Server
When to use: RDBMS works best when you need well-organized data with clear relationships, such as student records in a school, customer orders in a shop, or employee information in an office.
NoSQL means "Not Only SQL." These databases are designed for flexible data storage that does not fit neatly into tables. They handle large amounts of unstructured or semi-structured data, such as text, images, and social media posts.
Key features:
- Does not require a fixed table structure
- Stores data in documents, key-value pairs, or graph formats
- Highly scalable and fast
- Good for handling big data
Popular examples: MongoDB, Cassandra, Redis, CouchDB
When to use: NoSQL is ideal for mobile applications, social media platforms, content management systems, and real-time analytics where data types change frequently.
In-memory databases store data directly in the computer's random access memory (RAM) instead of on hard drives. Because RAM is much faster than disk storage, these databases respond to queries almost instantly.
Key features:
- Extremely fast data access and processing
- Data is stored in memory
- Often used as caching layers
- Suitable for real-time applications
Popular examples: Redis, Memcached, SAP HANA
When to use: In-memory databases are perfect for applications requiring instant results, such as stock trading platforms, online gaming leaderboards, and real-time session storage for shopping carts.
Columnar databases store data by columns rather than by rows. In traditional row-based databases, reading a single column requires scanning entire rows. Columnar storage reads only the needed columns, making it very efficient for analytical queries.
Key features:
- Optimized for reading and analyzing large datasets
- Excellent compression rates
- Fast aggregation operations (sums, averages, counts)
- Common in business intelligence and reporting
Popular examples: Amazon Redshift, Google BigQuery, Apache Cassandra, ClickHouse
When to use: Columnar databases are best for data warehousing, sales reporting, financial analysis, and any scenario where you need to summarize or analyze large volumes of numerical data.
Cloud-based databases are hosted and managed on cloud platforms. Instead of installing software on your own computer or server, you access the database over the internet. The cloud provider handles maintenance, backups, and security.
Key features:
- Accessible from anywhere with an internet connection
- Scalable — you can increase storage as needed
- Pay-as-you-go pricing models
- Automatic backups and disaster recovery
Popular examples: Amazon Relational Database Service (RDS), Microsoft Azure SQL Database, Google Cloud SQL, Firebase
When to use: Cloud databases are ideal for businesses that want to avoid managing their own hardware, startups needing quick deployment, and organizations with remote teams.
| Type | Best For | Example Use |
|---|---|---|
| RDBMS | Structured data with relationships | Student registration system |
| NoSQL | Flexible, large-scale data | Social media feed |
| In-memory | Speed-critical applications | Real-time gaming |
| Columnar | Analytics and reporting | Monthly sales summary |
| Cloud-based | Remote access and scalability | E-commerce website |
Think about a county school in Juba that needs to manage student marks, attendance, and library books.
- Student marks would work well with an RDBMS because marks are structured data with clear relationships between students, subjects, and terms.
- Library book inventory with various categories and descriptions could use NoSQL for flexibility.
- If the school wants instant results when teachers check marks on their phones, an in-memory database would help.
- For the headteacher's end-of-term reports analyzing performance across all classes, a columnar database would process the data quickly.
- If the school does not have an IT team to maintain servers, a cloud-based database would handle everything online.
In South Sudan, a hospital in Malakal could use a database to manage patient records, medicine inventory, and appointment schedules. A cloud-based database would allow doctors at the Juba teaching hospital to access patient histories quickly, even from remote clinics. For storing daily sales data from a boma market in Wau, a columnar database would help the county health office analyze medicine distribution trends efficiently across the region.
Question
Which type of database organizes data into tables with rows and columns and uses SQL to manage data?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet