返回课程
DSAI2202 本科

PolyU | 数据库原理

一门本科课程,通过关系数据操作、精确的系统状态保持以及AI时代的SQL验证,探索数据库原理。

4.9
70.0h
1131 名学生
22 课时
36 点赞
人工智能
开始学习

课程概述

内容摘要

一门本科课程,通过关系数据操作、精确系统状态保持以及人工智能时代的 SQL 验证,探索数据库原理。

以数据操作思考,用 SQL 表达。

作者: 程然

致谢: 基于 DSAI2202 数据库原理课程讲义。

学习目标

  1. 学习者应理解什么是数字数据,以及它如何表示现实世界的信息。
  2. 学习者应理解长期数据保存中持久化存储的必要性。
  3. 学习者应理解现代数据库管理系统所承担的关键操作职责。
  4. 学习者应巩固他们对数据库、持久化存储和人工智能如何交互的理解。
  5. 学习者将理解如何分析现实世界领域以捕获数据需求。
  6. 学习者将理解构建完整概念性 ER 模型所需的步骤。
  7. 学习者将理解主键在强制唯一性和行标识中的作用。
  8. 学习者将回顾从概念领域模型转向关系表的核心原则。
  9. 学习者将理解从数据库中检索特定数据的基本目的。
  10. 学习者将应用比较运算符来指定精确或基于范围的条件。
  11. 学习者将限制查询返回的行数。
  12. 学习者将回顾检索和过滤数据库数据的基础原则。

课程

Lesson

Lab

This lab introduces the fundamentals of PostgreSQL, guiding students through the installation of the database server and the pgAdmin 4 management tool. Students will learn how to connect to their local database, execute basic SQL queries, and understand the core architecture of a relational database management system.

This lesson explains why flat spreadsheets are inefficient for managing complex data due to issues like redundancy and update anomalies. It introduces relational database design as a solution, teaching students how to identify entities and structure tables to ensure data integrity and consistency.

This lab teaches students how to identify and filter student-progress data in PostgreSQL by categorizing fields into identity, risk evidence, and decision status. Students will learn to construct queries that select specific columns and apply logical conditions to prioritize support for at-risk students.

This lab teaches how to safely maintain a PostgreSQL student database by handling four requests—adding, updating, standardizing, and deleting records—while ensuring only the intended rows are affected. You'll learn to inspect table constraints, restore a known starting state, and use INSERT, UPDATE, and DELETE statements with correct targets and expected row counts.

In Lab 5, students learn how to group and summarise data in PostgreSQL using a university course performance dataset. Key topics include writing aggregate functions like COUNT, SUM, AVG, MIN, and MAX, handling NULL values, and using DISTINCT to generate accurate registrar reports.

本实验旨在学习如何使用 PostgreSQL 中的 INNER JOIN 将学生、课程和选课表关联起来,从而生成包含完整信息的选课报告。通过实践,学生将掌握如何利用外键匹配相关数据,并理解连接操作如何根据匹配条件合并多表记录。

Topic

This lesson introduces database transactions as single, indivisible units of work that ensure data integrity through atomicity, durability, and visibility control. Students learn how transactions manage failure handling and state boundaries using commit and rollback operations.