lec01_introduction-414
lec01_introduction-414
Introduction
1. Administrivia
2. Databases, DBMS
§ Two exams:
• Midterm: Friday, April 26, 10:30-11:20 in class
• Final: Monday, June 3, 8:30-10:20 same room
Also useful:
§ Database Management Systems
(3rd Edition)
§ Collaboration:
• Do complete homeworks individually
• Do discuss concepts, but see previous item
• Don’t show your work
• Don’t post it on the Web
• Don’t look at other peoples’ work
• Don’t use AI tools to produce your work
Examples of DBMSs
§ Oracle, IBM DB2, Microsoft SQL Server, Vertica, Teradata
§ Cloud: Snowflake, Redshift, BigQuery, SQL Azure
§ Open source: MySQL (Sun/Oracle), PostgreSQL, DuckDB
§ Open source library: SQLite
Examples of DBMSs
§ Oracle, IBM DB2, Microsoft SQL Server, Vertica, Teradata
§ Cloud: Snowflake, Redshift, BigQuery, SQL Azure
§ Open source: MySQL (Sun/Oracle), PostgreSQL, DuckDB
§ Open source library: SQLite
Medical Records
PatientID Name Status Notes
123 Alex Healthy …
345 Bob Critical …
Medical Records
PatientID Name Status Notes
123 Alex Healthy …
345 Bob Critical …
Data Model
A Data Model is a mathematical formalism to describe data. It is how we can talk
about data conceptually without having to think about implementation.
Medical Records
PatientID Name Status Notes
123 Alex Healthy? …
345 Bob Critical …
Medical Records
PatientID Name Status Notes
123 Alex Healthy? …
345 Bob Critical …
Medical Records
PatientID Name Status Notes
123 Alex Healthy? …
345 Bob Critical …
Medical Records
PatientID Name Status Notes “Which patients are critical?”
123 Alex Healthy? … SELECT * FROM records
345 Bob Critical … WHERE status=“critical”
Table/
Relation
Table/
Relation
Table/
Relation Columns/Attributes/Fields
No sub-tables allowed!
UserID Name Job Salary
123 Jack JobName HasBananas 50000
TA 0
farmer 1
“123\tJack\tTA\t50000\t345\tAllison…” or maybe
“123\t345\t567\t789\tJack\tAllison…”
“123\tJack\tTA\t50000\t345\tAllison…” or maybe
“123\t345\t567\t789\tJack\tAllison…”
“123\tJack\tTA\t50000\t345\tAllison…” or maybe
“123\t345\t567\t789\tJack\tAllison…”
Physical Data Independence
…and this