Learn What is Database | Types of Database | DBMS

Learn What is Database | Types of Database | DBMS

What is a Database?

Understanding Data

  • In today's digital world, data is crucial for the functioning of various entities, from governments to local businesses.
  • Data encompasses any information or fact, including personal details like name, age, and address, as well as broader categories such as school statistics or technology-related information.
  • Data can exist in multiple forms: images, videos, files, or plain text. All these formats can be stored in a database.

What is a Database?

  • A database is defined as an electronic container that stores data within a computer system.
  • The primary purpose of databases is to allow easy access, modification, protection, and analysis of stored data.
  • Many applications (e.g., Google, Instagram) utilize databases to manage user data effectively.

Practical Application Example

  • For instance, developing a college timesheet web application requires a database to store staff details and student attendance.
  • The application connects to the database on your computer's hard drive whenever it needs to save or retrieve information.

Database vs. DBMS

  • It's important to differentiate between a database (a container for data) and DBMS (Database Management System), which manages the database.
  • DBMS allows users to interact with the database using specific commands; examples include MySQL and MongoDB.

Evolution of Databases

Historical Development

  • The evolution of databases began in the 1960s with simple file storage systems like CSV files.
  • Hierarchical and network databases followed but were limited in handling complex relationships among data.

Current Types of Databases

  • Today’s popular types are relational databases (over 74% usage rate) and non-relational databases due to increased social media data demands.
  • Major companies often use both types simultaneously; Oracle leads in relational databases while MongoDB dominates non-relational ones.

Relational Databases Explained

Structure of Relational Databases

  • In relational databases, data is organized into tables that relate to one another through defined relationships.

Understanding Relational and Non-Relational Databases

Relational Database Structure

  • The employee and manager tables are interconnected through the manager ID column, which serves as a foreign key constraint in relational databases.
  • Although the employee and department tables are not directly linked, data can still be retrieved from the employee table based on conditions from the department table, showcasing how relational databases manage scattered information across multiple tables.
  • SQL (Structured Query Language) is introduced as the standard programming language for querying data in relational databases, widely used by financial institutions like banks and insurance companies.
  • Examples of popular relational databases include Oracle, MySQL, Microsoft SQL Server, and PostgreSQL.

Overview of Non-Relational Databases

Key-Value Store

  • A key-value database is defined as the simplest form of non-relational database where each piece of data is associated with a unique key.
  • This type of database is particularly useful for storing configuration data or state information that can be represented as dictionaries or hashes in programming languages. Examples include Redis and Memcached.

Document Database

  • Document databases utilize unique keys to identify stored data but differ from key-value stores by organizing data into structured formats called documents (e.g., JSON or XML).
  • Each document can have its own structure without adhering to a specific format across all documents, allowing for more flexible querying and analysis. Notable examples are MongoDB and CouchDB.

Graph Database

  • Graph databases represent relationships between data using nodes (data points), edges (connections), and properties rather than traditional tables.
  • This model is advantageous when analyzing complex relationships or patterns within datasets, such as fraud detection in financial transactions. Neo4j is an example of a graph database.

Wide Column Database

Video description

In this video, we learn everything we need to know about Databases. Relational database and also other types of database like the NoSQL Database or Non Relational database. Data has never been more crucial than it is today. Storing, managing and protecting data is of utmost importance. Due to this, databases have evolved rapidly over the last decade to cater the need of rapidly growing data and to support data in different size, shape and formats. The aim of this video is to help everyone to learn what is database and the different types of database available today. This video also answers if DBMS is same as database. We also briefly look at the evolution of database. In this video, I also touch upon the basics of relational database and non relational database. We briefly look at different categories of non relation database. I’ve used animated video’s to make the content more interesting to watch. Listing below the contents of this video for a quick glance on what is covered: Introduction What is Data? What is Database? Is DBMS same as Database? Evolution of Database Relational Database Non-Relational Database (which covers below categories) Key Value Database (Key Value Store) Document Database (Document Store) Graph Database Wide Column Database (Column Family Database) Hope you learn something useful from this video and hopefully it helps you in some way or the other. Please comment your thoughts and subscribe to the channel. 🔴 WATCH MORE VIDEOS HERE 👇 ✅ SQL Tutorial - Basic concepts: https://www.youtube.com/playlist?list=PLavw5C92dz9HQQ_COgGb7kf_1H8UWUBxO ✅ SQL Tutorial - Intermediate concepts: https://www.youtube.com/playlist?list=PLavw5C92dz9FD9XspliRM_HZM_jK7tkii ✅ SQL Tutorial - Advance concepts: https://www.youtube.com/playlist?list=PLavw5C92dz9GbmgiW4TWVnxhjMFOIf0Q7 ✅ Practice Solving Basic SQL Queries: https://www.youtube.com/playlist?list=PLavw5C92dz9F66P3GFo5O6nJ4DfZNhVsp ✅ Practice Solving Intermediate SQL Queries: https://www.youtube.com/playlist?list=PLavw5C92dz9EIYmNXJ8ZtQ1bmLIpt0SpV ✅ Practice Solving Complex SQL Queries: https://www.youtube.com/playlist?list=PLavw5C92dz9Fahr7taauUx5RnTfuGyL-- ✅ Data Analytics Career guidance: https://www.youtube.com/playlist?list=PLavw5C92dz9FDsr995DjwCy9XNaIukb8P ✅ SQL Course, SQL Training Platform Recommendations: https://www.youtube.com/playlist?list=PLavw5C92dz9GqF1Q_zn8KnYvFgtEOh-2n ✅ Python Tutorial: https://www.youtube.com/playlist?list=PLavw5C92dz9FePZXIo4jpsupqp3X0w2SW ✅ Git and GitHub Tutorial: https://www.youtube.com/playlist?list=PLavw5C92dz9EI1MPlqqDpe3bgr8RJZE0b ✅ Data Analytics Projects: https://www.youtube.com/playlist?list=PLavw5C92dz9HwT_uStsDdJbuBOt_XD0ch THANK YOU, Thoufiq