Database Models
Relational databases provides a structured way to store, manage, and access large amounts of data. RDBs excel at organizing data into related tables, allowing for efficient retrieval and analysis.
Benefits:
id,name,email,course_id,course 1,Jon,jb@mail.com,GEO101,Intro to Geology 1,Jon,jb@mail.com,MAT200,College Math II 2,Alice,abell@u.edu,BIO250,Intermediate Bio 2,Alice,abell@u.edu,GEO101,Intro to Geology 2,Alice,abell@u.edu,MAT200,College Math II 3,Bob,bob@work.com,BIO250,Intermediate Bio 4,Maria,maria@u2.edu,CSE100,Intro to Python
CSV file
Enrollments
Students
DB Tables
Courses
An ERD is a graphical representation of a database schema that shows the entities (tables) within a database, their attributes (columns), and the relationships between them.
Structured Query Language is the language used to communicate with RDBs. It allows us to perform a wide range of tasks, including:
What courses did Alice enroll in?
SELECT course_id from Enrollments WHERE student_id = 2
The SQL query above returns BIO250, GEO101, MAT200
BIO250, GEO101, MAT200