SQL for Beginners Learn SQL Using MySQL and Database Design
I. Giới thiệu khóa học:
Trong kỷ nguyên số, dữ liệu được tạo ra và lưu trữ với tốc độ ngày càng lớn từ các hoạt động sản xuất, kinh doanh và đời sống thường ngày. Việc hiểu và khai thác dữ liệu mang lại lợi thế quan trọng cho tổ chức và cá nhân. Trong đó, truy vấn SQL là một trong những kỹ thuật khai thác dữ liệu cơ bản và thiết yếu nhất, giúp người học làm chủ việc lưu trữ, tìm kiếm, phân tích và trình bày thông tin từ cơ sở dữ liệu quan hệ.
Thực tế cho thấy, SQL luôn nằm trong nhóm kỹ năng được yêu cầu hàng đầu đối với các vị trí liên quan đến dữ liệu như phân tích dữ liệu (Data Analyst), khoa học dữ liệu (Data Scientist), quản trị cơ sở dữ liệu (Database Administrator) hay phát triển phần mềm. Các báo cáo tuyển dụng quốc tế cho thấy nhu cầu nhân lực thành thạo SQL đang tăng trưởng mạnh, với mức lương và cơ hội việc làm hấp dẫn.
Khóa học “SQL for Beginners: Learn SQL using MySQL and Database Design” sẽ giúp người học nắm vững nền tảng về cơ sở dữ liệu và SQL thông qua các ví dụ và bài tập thực hành với MySQL. Sau khóa học, học viên không chỉ có thể thiết kế và quản lý cơ sở dữ liệu, mà còn thành thạo trong việc truy vấn, thống kê và phân tích dữ liệu – những kỹ năng cốt lõi để tham gia vào lĩnh vực công nghệ và dữ liệu hiện nay.
II. Thời lượng: 32 giờ (4 ngày)
III. Mục tiêu khóa học:
- Nắm vững SQL – kỹ năng cốt lõi để truy vấn và khai thác dữ liệu.
- Thiết kế, quản lý và tối ưu cơ sở dữ liệu quan hệ với MySQL.
- Thực hành các truy vấn từ cơ bản đến nâng cao phục vụ báo cáo, phân tích và ra quyết định.
- Áp dụng ngay vào công việc liên quan đến quản lý và phân tích dữ liệu
IV. Đối tượng mục tiêu:
- Sinh viên các ngành CNTT, khoa học máy tính, kinh tế, tài chính, quản trị kinh doanh… muốn trang bị kỹ năng nền tảng về cơ sở dữ liệu và SQL.
- Người đi làm trong nhiều lĩnh vực có nhu cầu khai thác dữ liệu để báo cáo, phân tích hoặc phục vụ công việc.
- Người chuyển ngành sang lĩnh vực dữ liệu như phân tích dữ liệu, BI (Business Intelligence), quản trị cơ sở dữ liệu.
- Bất kỳ ai quan tâm đến việc thiết kế, truy vấn và phân tích cơ sở dữ liệu quan hệ bằng SQL và MySQL.
V. Nội dung khóa học:
1. Introduction to Databases & Basic MySQL
- Concepts of Database, RDBMS, and MySQL.
- Concepts of table, row, and column.
- Installing MySQL and MySQL Workbench.
- Basic data types: INT, VARCHAR, DATE, FLOAT, BOOLEAN.
- Primary Key, Foreign Key, Unique, Not Null.
- Lab 1: Install and Get Familiar with the MySQL Environment, Create a Database and Tables for Data Storage.
2. Basic CRUD (Create, Read, Update, Delete)
- INSERT statement: Add new records into a table.
- SELECT statement: Retrieve data from one or more tables.
- UPDATE statement: Modify existing records in a table.
- DELETE statement: Remove records from a table.
- Comparison operator: =, >, <, LIKE, BETWEEN, IN.
- LIMIT, ORDER BY clause.
- Lab 2: Perform Data Insertion, Update, Deletion, and Basic Data Retrieval
3. Advanced Queries (Filtering & Aggregation)
- Removing Duplicates with DISTINCT,
- Aggregate Functions: COUNT, SUM, AVG, MIN, MAX.
- Grouping Data with GROUP BY
- Filtering Groups with HAVING.
- Lab 3: Data Filtering and Statistical Analysis in MySQL
4. Querying Data with joins (Combining Multiple Table)
- Relationships Between Tables.
- One-to-One, One-to-Many, Many-to-Many.
- Use of Primary Key (PK) and Foreign Key (FK) to establish relationships.
- INNER JOIN → Returns only matching rows between tables.
- LEFT JOIN → Returns all rows from the left table and matching rows from the right.
- RIGHT JOIN → Returns all rows from the right table and matching rows from the left.
- FULL JOIN (not directly supported in MySQL, but can be simulated) → Returns all rows from both tables.
- CROSS JOIN → Cartesian product of two tables.
- Lab 4: Querying Data Across Multiple Table
5. Database Design
- Database Design Process
- Data Modeling
- Entity–Relationship Model (ER Model)
- Database Normalization Principles (1NF, 2NF, 3NF)
- Avoiding Redundancy and Ensuring Data Integrity
- Relational Data Model (ERD → Relational Schema
- Lab 5: From Business Requirements to MySQL Schem
6. Subqueries & Views
- Subqueries in WHERE
- Subqueries in FROM.
- Using EXISTS, ANY, ALL.
- Views
- Lab 6: Advanced Querying with Subqueries and Views
7. Stored Procedures, Functions & Triggers
- Stored Procedures in MySQL.
- User-Defined Functions in MySQL
- Triggers in MySQL
- Lab 7: Automating Logic with Stored Procedures, Functions, and Triggers
8. Transaction & Index
- Transactions in MySQL
- ACID Properties.
- Indexes in MySQL: B-Tree Index, Unique Index.
- Query Optimization with EXPLAIN.
- Lab 8: Transactions, Indexing, and Query Optimization
9. Security and User Privileges in MySQL
- User Management in MySQL: CREATE USER, GRANT, REVOKE
- Basic Privileges: SELECT, INSERT, UPDATE, DELETE.
- Lab 9: Securing MySQL with User Management and Privileges
10. Session 10 — Mini Project: SQL Data Analysis & Reporting
- Comprehensive Exercise
- Build a sample database with multiple related tables (e.g., customers, products, orders, employees, or any similar scenario).
- Insert sample data for practicing queries and analysis.
- Querying & Data Exploration
- Write advanced SQL queries to:
- Identify top-performing entities (customers/products/employees) based on certain criteria.
- Generate time-based reports (monthly, quarterly, yearly).
- Perform basic trend or business analysis from the data.
- Create a Stored Procedure to automate a key reporting task.
- Create a VIEW to simplify frequently used reports.
- Write advanced SQL queries to:
- Analysis & Presentation
- Present the database design and relationships between tables.
- Demonstrate queries, explain the logic, and interpret the results.
- Discuss possible extensions: advanced analysis, query optimization, and reporting improvements.
Học trực tuyến
Học tại Hồ Chí Minh
Học tại Hà Nội



