Databases: Storing and Retrieving Information Effectively
Cơ sở dữ liệu: Lưu trữ và truy xuất thông tin hiệu quả
SQL vs. NoSQL:
-
What are the fundamental differences between SQL (relational) and NoSQL (non-relational) databases?
-
When would you choose one over the other? Give examples of common use cases for each.
Hints and Tips
Tip thêm: SQL database mạnh về tính nhất quán và các mối quan hệ phức tạp (ví dụ: hệ thống ngân hàng). NoSQL thì linh hoạt hơn, phù hợp cho dữ liệu phi cấu trúc và cần mở rộng nhanh (ví dụ: mạng xã hội, IoT).Database Normalization:
-
What is database normalization? What are its benefits?
-
What is database de-normalization? What are its benefits?
-
Briefly explain the concept of 1NF, 2NF, and 3NF.
Hint and Tips
Tip thêm: Normalization giúp bạn thiết kế database hiệu quả, tránh trùng lặp dữ liệu và giảm thiểu các lỗi khi cập nhật. Nó giống như việc bạn sắp xếp lại tủ quần áo sao cho mọi thứ gọn gàng và dễ tìm.ACID Properties:
- Explain Atomicity, Consistency, Isolation, and Durability in the context of database transactions. Why are they important?
Hint and Tips
Tip thêm: ACID là 4 thuộc tính đảm bảo độ tin cậy của các giao dịch trong database. Hãy liên hệ với giao dịch chuyển tiền trong ngân hàng: nếu một bước thất bại, toàn bộ giao dịch phải được hoàn tác để đảm bảo dữ liệu luôn đúng đắn.Indexing:
- What is a database index? How does it improve query performance? What are its trade-offs?