├── LICENSE ├── README.md ├── final ├── Final_cheating_paper.pdf └── final.md ├── lab ├── Exercise 7_with_answer.pdf ├── Exercise 9_with_answer.pdf ├── Experiment 1 Software Installing.pdf ├── Experiment_7_combiningQuery.pdf ├── Experiment_lab09window_function.pdf ├── Lab1 Software Installing.pdf ├── Lab10_create_function.pdf ├── Lab11_Create_A_Trigger-1.pdf ├── Lab2-infoschema_pgcatalog.pdf ├── Lab3-constraint_DML.pdf ├── Lab4-SimpleQueries.pdf └── Lab5_Data2ER2Model.pdf ├── lecture ├── Lectures_Lecture1.pdf ├── Lectures_Lecture10.pdf ├── Lectures_Lecture11.pdf ├── Lectures_Lecture12.pdf ├── Lectures_Lecture13.pdf ├── Lectures_Lecture14.pdf ├── Lectures_Lecture15.pdf ├── Lectures_Lecture2.pdf ├── Lectures_Lecture3.pdf ├── Lectures_Lecture4.pdf ├── Lectures_Lecture5.pdf ├── Lectures_Lecture6.pdf ├── Lectures_Lecture7.pdf ├── Lectures_Lecture8.pdf └── Lectures_Lecture9.pdf └── project ├── project1_report.pdf ├── project1_source.zip ├── project2.jar ├── project2_report.pdf └── project2_source.zip /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Fangmin Hou 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CS307_Principles_of_Database_Systems 2 | 3 | 南方科技大学数据库原理课程资料 4 | 5 | ## basic information 6 | 7 | - instructor: 程然,王维语 8 | - semester: 22 FALL 9 | 10 | ## repository content 11 | 12 | - lecture:lecture note 13 | - lab:lab note 14 | - project:两次project的内容 15 | - final:自己写的期末cheating paper,回忆版22FA期末考题 16 | 17 | ## tips 18 | 19 | - ta老师上课的声音个人感觉比较小,介意的同学建议选其他老师的lab。 20 | 21 | - 22fall两次project的题目都有一些瑕疵。如果早早开始写,感觉给的材料有问题的话,建议联系一下sa。同时记得勤看课程的QQ群,有一些更改可能没有及时在其他地方发布(比如sakai)。 22 | 23 | - 期末的cheating paper建议做得全面一点,个人感觉有部分题目是如果在cheating paper上写了就可以拿到分数的。 24 | 25 | 26 | -------------------------------------------------------------------------------- /final/Final_cheating_paper.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/final/Final_cheating_paper.pdf -------------------------------------------------------------------------------- /final/final.md: -------------------------------------------------------------------------------- 1 | # CS307 2022FA final exam 回忆版 2 | 3 | - 总体题量一般,如果会的话大概率是可以写完的。 4 | - 可以带一页A4手写的cheating paper。期末的cheating paper建议做得全面一点,个人感觉有部分题目是如果在cheating paper上写了就可以拿到分数的。 5 | 6 | - 试卷组成:单选,不定项,大题。 7 | 8 | - 单选和不定项选择多是对理论知识的考察,知识点个人感觉在各章分布比较均匀,大部分题目都不是很难,但由于不定项的存在,如果想要得高分的话需要对理论课的内容细节十分熟悉。 9 | 10 | - 大题考察到的全部内容:ER图,写SQL语句及运行结果,画B-tree,serializability。 11 | - 下面各部分的内容回忆大概是按题目在试卷中出现的顺序写的。 12 | 13 | ## 单选题 14 | 15 | - 大概11,12个 16 | 17 | - 问了SQL是什么的缩写(是Structured Query Language) 18 | - 命名合法性:问给出的某名字是否valid 19 | - 问某给出语句是DDL还是DML 20 | 21 | ## 不定项选择题 22 | 23 | - 大概5,6个 24 | 25 | - 有一个题是问给出的数据库satisfy哪一种或多种level的normal form 26 | 27 | - 有一个题是关于null的性质:有选项问到null的运算 28 | 29 | ## 大题(大致按在试卷上的先后顺序) 30 | 31 | - 第一个大题是画er图 32 | 33 | - 第二个大题是写简单的查询语句 34 | - 有写insert into 语句的题目 35 | - 写查询在某日期之后的数据的语句(涉及到写日期比较的语句) 36 | 37 | - 某大题的一个小问是写 rank 函数 38 | - 倒数第三大题是写出几个和union有关的查询的结果,有left union和多层union 39 | 40 | - 倒数第二题是画出 B-tree insert nodes 之后的样子,有四小问,分别画出加1,2,3,4个 node 之后的 B-tree 41 | - 最后一个题考的serializability,分别画出两个schedule的precedence graph,判断它们是不是conflict serializability并给出理由。 42 | -------------------------------------------------------------------------------- /lab/Exercise 7_with_answer.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Exercise 7_with_answer.pdf -------------------------------------------------------------------------------- /lab/Exercise 9_with_answer.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Exercise 9_with_answer.pdf -------------------------------------------------------------------------------- /lab/Experiment 1 Software Installing.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Experiment 1 Software Installing.pdf -------------------------------------------------------------------------------- /lab/Experiment_7_combiningQuery.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Experiment_7_combiningQuery.pdf -------------------------------------------------------------------------------- /lab/Experiment_lab09window_function.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Experiment_lab09window_function.pdf -------------------------------------------------------------------------------- /lab/Lab1 Software Installing.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Lab1 Software Installing.pdf -------------------------------------------------------------------------------- /lab/Lab10_create_function.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Lab10_create_function.pdf -------------------------------------------------------------------------------- /lab/Lab11_Create_A_Trigger-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Lab11_Create_A_Trigger-1.pdf -------------------------------------------------------------------------------- /lab/Lab2-infoschema_pgcatalog.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Lab2-infoschema_pgcatalog.pdf -------------------------------------------------------------------------------- /lab/Lab3-constraint_DML.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Lab3-constraint_DML.pdf -------------------------------------------------------------------------------- /lab/Lab4-SimpleQueries.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Lab4-SimpleQueries.pdf -------------------------------------------------------------------------------- /lab/Lab5_Data2ER2Model.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lab/Lab5_Data2ER2Model.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture1.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture10.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture11.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture12.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture13.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture14.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture14.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture15.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture15.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture2.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture3.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture4.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture5.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture6.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture7.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture8.pdf -------------------------------------------------------------------------------- /lecture/Lectures_Lecture9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/lecture/Lectures_Lecture9.pdf -------------------------------------------------------------------------------- /project/project1_report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/project/project1_report.pdf -------------------------------------------------------------------------------- /project/project1_source.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/project/project1_source.zip -------------------------------------------------------------------------------- /project/project2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/project/project2.jar -------------------------------------------------------------------------------- /project/project2_report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/project/project2_report.pdf -------------------------------------------------------------------------------- /project/project2_source.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/houfm/CS307_Principles_of_Database_Systems/7f4f7281367997a60b0ef901b86a4a1816fff4dc/project/project2_source.zip --------------------------------------------------------------------------------