-
Half of the score จะไปเป็นส่วนของ SQL command
-
Subquery จะเป็น compound sentence
- เช่น Sentence 1 which/what/who/that (Sentence 2)
- Show student details who do not submit project yet.
- (Outer/Main query) ------- (Inner/Subquery)
- บางครั้งก็จะไม่โชว์ Output นะ แค่เป็น Statements; show name and location of all departments ไรงี้
-
อาจจะมี Explain me or giving the sample of serializability (in database)
-
Maybe ask in final exam, what is Phantom Read?
-
ใน Final Exam อาจจะถามถึงพวกLost Update, Non-Repeatable Read ให้ตาราง Transaction มาแบบ concurrency แล้วถามว่า มีปัญหารึยัง
-
พยายามอย่าเอาจาก Lecture มาตอบเป๊ะ ๆ อาจารย์จำได้ว่าสอนอะไรไปบ้าง
-
พาร์ทที่ให้บรรยาย อยากให้บรรยายจากสิ่งที่เข้าใจ อย่าก้อปไปทั้ง Statement!
-
Final อาจารย์เน้นประยุกต์
-
Keys,Integrity Constraints, and Functional, Dependencies (25 marks)
- Superkey, Candidate Key, Primary Key, Secondary Key, ค่อยสร้าง Foreign Key
-
Normalization (25 marks)
- Split Table
- 2NF, 3NF
- ดูรายละเอียดปลีกย่อย ทำให้ครบรายละเอียดที่อาจารย์บอกไว้
-
Database Implementation using DDL, DML (25 marks)
- DDL:
CREATE TABLE - w3school เพื่อดูตัวอย่าง
- DDL:
-
Database Implementation using DQL (45 marks)
- Cover basic query, advance query (bult-in, date time, mathematic, round up, floor,
GETDATE(), calculate age, generate derive data) - Join, cross join, inner join, left right outer join
- Subquery, correlated query (เอาข้อมูลข้างบนส่งมาใช้), Trigger, Store Procedure, View
- อาจจะมีตัวอย่าง output, หรืออาจจะไม่มีก็ได้ (งั้น design ให้บางข้อมี, บางข้อไม่มีละกัน)
- อาจจะไม่มี output ก็สามารถ design
SELECTcommand ได้เองเลยล่ะ ว่าอยากให้อะไรออกมาบ้าง
- อาจจะไม่มี output ก็สามารถ design
- Cover basic query, advance query (bult-in, date time, mathematic, round up, floor,
-
Transaction and Concurrency Control (30 marks)
BEGIN TRANSACTION,COMMIT, Dirty Read, Phantom Read, ต่าง ๆ มากมาย
-
Total score 150
-
Leetcode
-
No content from 15 - Database in a Nutshell - DBLC Trends and More will be asked in final exam!
-
Do not give hint about what function to use!