FoundationsER Modeling & Database Design
Before writing any SQL, most courses start with entity-relationship (E-R) modeling — the process of mapping real-world objects (entities) and their attributes into a database structure. An entity is a distinct object or concept, like a Patient or Appointment in a medical office database. An attribute is a property of that entity, like Patient ID or Date of Birth.
Here's the mental shift that makes this click: stop thinking of a database as "a spreadsheet" and start thinking of it as "a filing system for facts about distinct things." Every table is a category of thing (Patients, Doctors, Appointments); every column is a fact about that thing; every row is one specific instance of it.
QueryingSQL SELECT Basics
Every SQL query starts with SELECT and FROM — the only two mandatory clauses in a basic query. SELECT specifies which columns to return, and FROM specifies the table.
Using an asterisk (SELECT *) returns every column, while listing
specific column names returns just those columns, in the order you list them.
Read a query right-to-left in your head first — start from the table (FROM),
then the filter (WHERE), then finally what you're choosing to display (SELECT)
— it mirrors how the database itself actually processes it.
Try it yourself: what does this query return?
StructureCreating Tables & Data Types
Tables are created with CREATE TABLE, and every column needs
a name, a data type, and a width where required. Column names must be
unique within a table.
Data integrityConstraints
A constraint is a rule applied to data being added to a table — if new
data violates the rule, it isn't added. Constraints can be defined when
a table is created, or added later with ALTER TABLE.
Think of constraints as the database's own immune system — they reject bad data automatically, before it ever has a chance to corrupt a report or break an application further downstream. A database with no constraints will happily store a GPA of -400 or a birthdate in the year 3000.
Data controlTransactions & Commits
A transaction groups one or more changes together so they either all succeed or all fail. A commit is issued implicitly in a few situations — for example, when a DDL command runs, or when you exit SQL Developer or SQL*Plus normally.
Advanced objectsSequences, Views & Indexes
A sequence generates a series of integers that can be stored in a database — commonly used for auto-incrementing primary keys. A view is a saved query that acts like a virtual table. An index speeds up how quickly records can be located.
A helpful analogy: a sequence is like a "take a number" dispenser at a deli counter, a view is a saved shortcut to a specific slice of your data, and an index is the equivalent of a book's index — instead of reading every page to find a topic, you jump straight to it.
Cumulative reviewMidterm & Final Review
Once you've covered the individual topics above, the Midterm Review and Final Review quizzes mix questions across everything learned so far — good for simulating exam conditions before test day.