01. SQL Basics
01. SQL Basics
A database is an organized collection of data stored in a computer system and usually controlled by a
database management system (DBMS).
MySQL vs NoSQL:
Feature MySQL NoSQL
Limited horizontal
Scalability Horizontally scalable
scalability
Typically simpler to
Complexity Can be more complex to manage
manage
MySQL vs Oracle:
Cost Lower cost for most use cases Higher cost, especially for enterprise use
Distributed Relational
Relational Database Database Management
Definition Database Management
Management System System (generic term)
System
Centralized or
Architecture Centralized Distributed
distributed
Varies based on
Scalability Limited scalability High scalability
implementation
Feature RDBMS DRDBMS DBMS
Eventual or eventual-plus
Strong consistency Varies based on
Consistency consistency across
model implementation
distributed nodes
DBMS vs RDBMS:
Feature DBMS RDBMS
ACID
Not necessarily ACID-compliant ACID-compliant
Transactions
MySQL, PostgreSQL,
Examples SQLite, Microsoft Access
Oracle
DDL vs DML:
Feature DDL DML