PolyU | หลักการฐานข้อมูล
หลักสูตรระดับปริญญาตรีที่สำรวจหลักการของฐานข้อมูลผ่านการดำเนินการข้อมูลเชิงสัมพันธ์ การรักษาสถานะของระบบอย่างแม่นยำ และการตรวจสอบ SQL ในยุคของ AI
ภาพรวมคอร์สเรียน
สรุปเนื้อหา
รายวิชาระดับปริญญาตรีที่สำรวจหลักการของฐานข้อมูลผ่านการดำเนินการกับข้อมูลเชิงสัมพันธ์ การรักษาสถานะของระบบอย่างแม่นยำ และการตรวจสอบ SQL ในยุคของ AI
คิดในเชิงการดำเนินการกับข้อมูล นำเสนอด้วย SQL
ผู้เขียน: Ran Cheng
** acknowledgments:** อ้างอิงจากเอกสารประกอบการสอนรายวิชา DSAI2202 หลักการฐานข้อมูล
วัตถุประสงค์การเรียนรู้
- ผู้เรียนควรเข้าใจว่าข้อมูลดิจิทัลคืออะไร และมันแทนข้อมูลในโลกความเป็นจริงได้อย่างไร
- ผู้เรียนควรเข้าใจความจำเป็นของการจัดเก็บข้อมูลแบบถาวรเพื่อการรักษาข้อมูลในระยะยาว
- ผู้เรียนควรเข้าใจหน้าที่การดำเนินงานหลักที่จัดการโดยระบบจัดการฐานข้อมูลสมัยใหม่
- ผู้เรียนควรเสริมสร้างความเข้าใจว่าฐานข้อมูล การจัดเก็บข้อมูลแบบถาวร และ AI มีปฏิสัมพันธ์กันอย่างไร
- ผู้เรียนจะเข้าใจวิธีการวิเคราะห์โดเมนในโลกความเป็นจริงเพื่อเก็บรวบรวมความต้องการด้านข้อมูล
- ผู้เรียนจะเข้าใจขั้นตอนที่จำเป็นในการสร้างแบบจำลอง ER เชิงแนวคิดที่สมบูรณ์
- ผู้เรียนจะเข้าใจบทบาทของคีย์หลักในการบังคับใช้ความเป็นเอกลักษณ์และการระบุแถว
- ผู้เรียนจะทบทวนหลักการสำคัญในการเปลี่ยนจากแบบจำลองโดเมนเชิงแนวคิดไปเป็นตารางเชิงสัมพันธ์
- ผู้เรียนจะเข้าใจวัตถุประสงค์พื้นฐานของการดึงข้อมูลเฉพาะจากฐานข้อมูล
- ผู้เรียนจะประยุกต์ใช้ตัวดำเนินการเปรียบเทียบเพื่อระบุเงื่อนไขแบบเจาะจงหรือแบบช่วง
- ผู้เรียนจะจำกัดจำนวนแถวที่ส่งคืนโดยคำสั่งค้นหา
- ผู้เรียนจะทบทวนหลักการพื้นฐานของการดึงข้อมูลและการกรองข้อมูลในฐานข้อมูล
บทเรียน
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 将学生、课程和选课表关联起来,从而生成包含完整信息的选课报告。通过实践,学生将掌握如何利用外键匹配相关数据,并理解连接操作如何根据匹配条件合并多表记录。
This lab explores how to use different SQL join types—INNER, LEFT, RIGHT, FULL, and CROSS—to control which rows are retained when reconciling data between a student registry and an LMS roster. Students will learn to manage unmatched records and generate specific reports by selecting the appropriate join based on the desired output requirements.
Students learn how to compose data operations in PostgreSQL by investigating student performance declines across different academic periods using scalar subqueries, filters, and baseline comparisons.
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.