RANIARANIA Academy

Data Types & Table Design

Learn to design well-structured PostgreSQL tables: pick the right data type for every column, model relationships correctly, and enforce data quality with keys and constraints. You will finish able to translate a real-world requirement into a clean, normalised schema that keeps bad data out.

Watch the free preview

Numeric and boolean types — free to watch, no account needed.

PostgreSQL BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Design well-structured tables that model a real domain accurately
  • Choose the correct PostgreSQL data type for numeric, text, boolean, date/time and UUID columns
  • Enforce data quality with NOT NULL, UNIQUE, CHECK and DEFAULT constraints
  • Model relationships with primary and foreign keys and apply normalisation basics
  • Evolve an existing schema safely with ALTER TABLE

Syllabus

Choosing the Right Data Types
Numeric and boolean typesFree preview15 min
Text, date/time and UUID types15 min
Creating Tables and Keys
CREATE TABLE and primary keys15 min
NOT NULL, DEFAULT, UNIQUE and CHECK constraints15 min
Relationships and Normalisation
Foreign keys and referential integrity15 min
Normalisation basics15 min
Evolving a Schema
Changing tables safely with ALTER TABLE15 min
Putting it together — designing a schema from requirements15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min