🧠 Jin Hyun Park

Jin Hyun Park / Qual Exam Prep / Databases

Databases

Keys, transactions, indexes, and normalization. The questions are mostly definitions.

Primary key vs. foreign key

A primary key uniquely identifies a row within its own table. A foreign key is a column that refers to the primary key of another table; it is how tables are linked. In the example below, each order belongs to one customer, so the Orders table stores the customer's ID as a foreign key.

OrdersCustomers
Order_ID (primary key)
Customer_ID (foreign key → Customers)
Product
Customer_ID (primary key)
Name
Address

Transaction log

Also called the database log or write-ahead log (WAL).

ER (entity–relationship) model

NoSQL

Normalization

Clustered vs. non-clustered index

Normal forms

Overview · Useful materials · Sample questions · Algorithms · Architecture · OS · Networking · Automata · AI / ML · Things to remember