A structured collection of notes, learning materials, PDFs, and resources for learning SQL, MySQL, databases, and DBMS concepts.
Data is a collection of facts, values, or information that can be stored and processed by a computer.
Examples:
- Name
- Age
- Email address
- Phone number
- Product price
- Student marks
A database is an organized collection of data that allows information to be stored, managed, retrieved, and updated efficiently.
For example, a student database may contain:
| ID | Name | Age | Course |
|---|---|---|---|
| 1 | Rajib | 21 | Computer Science |
| 2 | Papu | 22 | Information Technology |
A Database Management System (DBMS) is software that allows users and applications to create, store, organize, retrieve, update, and manage data in databases.
- Create and manage databases
- Store and retrieve data
- Insert, update, and delete records
- Provide data security
- Manage user access
- Maintain data integrity
- Handle transactions
- Provide backup and recovery
The major types of DBMS include:
- Hierarchical DBMS
- Network DBMS
- Relational DBMS (RDBMS)
- Object-Oriented DBMS
- NoSQL Database Systems
MySQL is a Relational Database Management System (RDBMS).
SQL (Structured Query Language) is a standard language used to communicate with relational databases.
SQL can be used to:
- Create databases and tables
- Insert data
- Retrieve data
- Update data
- Delete data
- Filter and sort records
- Join multiple tables
- Aggregate and analyze data
- Manage database permissions
SELECT * FROM students;
INSERT INTO students (name, age)
VALUES ('Rajib', 21);
UPDATE students
SET age = 22
WHERE name = 'Rajib';
DELETE FROM students
WHERE name = 'Rajib';MySQL follows a client-server architecture.
The basic workflow is:
Client / Application
β
MySQL Server
β
SQL Query
β
Query Processing
β
Database
β
Result
- A client or application sends an SQL query.
- The MySQL server receives the query.
- MySQL parses and processes the query.
- The database engine reads or modifies the required data.
- MySQL returns the result to the client.
MySQL can be used with applications written in languages such as PHP, Python, Java, JavaScript, C++, and others.
MySQL is widely used because it is:
- Easy to learn
- Open source
- Fast and reliable
- Scalable
- Secure
- Cross-platform
- Widely supported
- Suitable for web applications
- Compatible with many programming languages
MySQL is an open-source relational database management system (RDBMS) that uses SQL to store, manage, and retrieve structured data.
MySQL organizes data into tables, which contain rows and columns.
Students
+----+--------+-----+------------------+
| ID | Name | Age | Course |
+----+--------+-----+------------------+
| 1 | Rajib | 21 | Computer Science|
| 2 | Papu | 22 | IT |
+----+--------+-----+------------------+
Some important features of MySQL include:
- Open Source
- High Performance
- Reliability
- Scalability
- Security
- Cross-Platform Support
- Client-Server Architecture
- SQL Support
- Transaction Support
- Replication
- Backup and Recovery
- Large Community Support
MySQL is a good choice when you need a relational database for applications such as:
- Web applications
- E-commerce websites
- Content management systems
- Business applications
- Inventory management systems
- Student management systems
- Banking and financial applications
- Reporting systems
- Data-driven applications
MySQL can be used as the database for:
Student Management System
Library Management System
E-Commerce Application
Hospital Management System
Inventory Management System
Blog / CMS
MySQL provides different data types for storing different kinds of values.
| Data Type | Description |
|---|---|
INT |
Integer values |
BIGINT |
Large integer values |
DECIMAL |
Exact decimal values |
FLOAT |
Floating-point numbers |
DOUBLE |
Double-precision numbers |
| Data Type | Description |
|---|---|
CHAR |
Fixed-length string |
VARCHAR |
Variable-length string |
TEXT |
Long text |
TINYTEXT |
Small text |
MEDIUMTEXT |
Medium-sized text |
LONGTEXT |
Very large text |
| Data Type | Description |
|---|---|
DATE |
Date |
TIME |
Time |
DATETIME |
Date and time |
TIMESTAMP |
Timestamp |
YEAR |
Year |
MySQL also supports data types such as:
BOOLEANJSONBINARYVARBINARYENUMSETBLOB
This repository contains additional PDF resources for learning SQL and MySQL.
Book SQL.pdf
A collection of SQL/MySQL learning material and notes.
Additional resources for learning SQL concepts and database queries.
Reference material covering SQL operators.
MySQL/
β
βββ README.md
β
βββ Book SQL.pdf
β
βββ SQL Learining Resources.pdf
β
βββ SQL-Operators.pdf
A recommended order for learning the topics in this repository:
Data
β
Database
β
DBMS
β
RDBMS
β
SQL Basics
β
MySQL
β
MySQL Data Types
β
SQL Operators
β
CRUD Operations
β
Filtering & Sorting
β
Aggregate Functions
β
GROUP BY / HAVING
β
Joins
β
Subqueries
β
Indexes
β
Constraints
β
Transactions
β
Advanced MySQL
A collection of useful resources for learning SQL, MySQL, Database, and DBMS concepts.
Practice SQL by working with:
SELECTstatementsWHEREconditionsORDER BYGROUP BY- Aggregate functions
JOIN- Subqueries
- Constraints
- Views
- Indexes
- Transactions
- Stored procedures
Contributions, corrections, additional notes, and useful SQL learning resources are welcome.
If you find an error or have an improvement, feel free to open an Issue or submit a Pull Request.
If this repository helps you learn SQL or MySQL, consider giving it a β on GitHub.
Happy Learning! π
