0% found this document useful (0 votes)
10 views7 pages

Databases and Data Management 17

The document provides an overview of databases and their management, highlighting the two main types: SQL (relational) and NoSQL (non-relational). It explains the functions of Database Management Systems (DBMS) and compares SQL and NoSQL in terms of data structure, scalability, and use cases. The conclusion emphasizes the importance of selecting the appropriate database based on project needs and data structure.

Uploaded by

Motuma Lalisa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

Databases and Data Management 17

The document provides an overview of databases and their management, highlighting the two main types: SQL (relational) and NoSQL (non-relational). It explains the functions of Database Management Systems (DBMS) and compares SQL and NoSQL in terms of data structure, scalability, and use cases. The conclusion emphasizes the importance of selecting the appropriate database based on project needs and data structure.

Uploaded by

Motuma Lalisa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

5.

Databases and Data


Management
Understanding Database Systems and
Their Types
Introduction to Databases
• - **Databases store, manage, and retrieve
structured and unstructured data.**
• - Used in applications like web development,
banking, and e-commerce.
• - **Two main types:**
• - **SQL Databases (Relational databases).**
• - **NoSQL Databases (Non-relational, flexible
structure).**
5.1 Database Management Systems (DBMS)

• - **DBMS is software that allows users to


store, manage, and query data efficiently.**
• - **Functions of a DBMS:**
• - Ensures data integrity and security.
• - Supports query languages like SQL.
• - Manages data access and concurrency.
• - **Examples:** MySQL, PostgreSQL,
MongoDB, Firebase.
5.1.1 SQL Databases (Relational Databases)
• - **SQL databases use structured tables with predefined schemas.**
• - Data is stored in rows and columns, with relationships between tables.
• - **Examples:**
• - **MySQL**: Open-source, widely used in web applications.
• - **PostgreSQL**: Advanced features, supports complex queries.
• - **SQLite**: Lightweight, used in mobile and embedded applications.
• - **Example SQL Query:**
• ```sql
• SELECT name, age FROM users WHERE age > 18;
• ```
5.1.2 NoSQL Databases (Non-Relational)
• - **NoSQL databases store data in flexible formats like JSON, key-
value, or graph.**
• - Ideal for handling large-scale, unstructured, and real-time data.
• - **Examples:**
• - **MongoDB**: Document-oriented, stores data in JSON format.
• - **Firebase**: Cloud-based, real-time database for mobile apps.
• - **Example NoSQL Query (MongoDB):**
• ```json
• db.users.find({"age": { "$gt": 18 }})
• ```
SQL vs. NoSQL: Key Differences
• - **Data Structure:**
• - SQL: Structured tables (rows, columns, relationships).
• - NoSQL: Flexible, schema-less storage (JSON, key-value,
graph).
• - **Scalability:**
• - SQL: Scales vertically (adding power to a single server).
• - NoSQL: Scales horizontally (adding multiple servers).
• - **Use Cases:**
• - SQL: Banking, ERP systems, structured data storage.
• - NoSQL: Social media, IoT, real-time applications.
Conclusion
• - **SQL Databases** are best for structured
data and transactional applications.
• - **NoSQL Databases** provide flexibility and
scalability for modern applications.
• - **Choosing the right database** depends on
project requirements and data structure.

You might also like