Hands-on practice: SQL
Thực hành SQL đầu tiên (Truy vấn đơn hàng trễ)
SELECT CustomerID, COUNT(*)
FROM ORDERS
WHERE Status = 'Late'
GROUP BY CustomerID;Understand
· Giải thích khái niệmUse ORDERS (OrderID, CustomerID, Status, Amount). SELECT/FROM choose columns and tables; WHERE filters late orders; GROUP BY aggregates COUNT by customer. Query: SELECT CustomerID, COUNT(*) FROM ORDERS WHERE Status = 'Late' GROUP BY CustomerID; the result is the number of late orders for each customer.
Session 03 Key Takeaways
Năm điểm cốt lõi của Bài 03
- 01
Data hierarchy: bit → field → record → table → database; the database approach kills redundancy.
Phân cấp dữ liệu: bit → field → record → table → database; tiếp cận CSDL loại bỏ dư thừa.
- 02
Relational model = tables + primary/foreign keys; design the ER diagram first.
Mô hình quan hệ = bảng + khóa chính/khóa ngoại; luôn thiết kế ERD trước.
- 03
OLTP runs the business, OLAP analyses it — separate them with a warehouse + ETL.
OLTP vận hành, OLAP phân tích — tách biệt bằng kho dữ liệu và ETL.
- 04
Big Data = the 5 Vs: Volume, Velocity, Variety, Veracity, Value.
Dữ liệu lớn (Big Data) gồm 5V: Volume, Velocity, Variety, Veracity, Value.
- 05
Analytics climbs four levels — descriptive → diagnostic → predictive → prescriptive.
Phân tích phát triển qua 4 cấp — mô tả → chẩn đoán → dự báo → đề xuất tối ưu.
Check Understanding · Kiểm tra kiến thức
Session 03 Knowledge Check
Original course questions (3 MCQs · 2 essays). Answers are revealed only after you check your choice.
0/3 questions attempted
Answer accuracy: not scored yet
0/2 essays self-assessed
No automated essay score
Which key uniquely identifies each row in a table?
Khóa nào định danh duy nhất từng dòng trong bảng?
Which workload is designed for heavy analytical queries over history?
Loại workload nào được thiết kế cho truy vấn phân tích nặng trên dữ liệu lịch sử?
In the 5 Vs of Big Data, which V refers to trustworthiness of data?
Trong 5V của Big Data, V nào chỉ độ tin cậy của dữ liệu?