Choose your language
Database Design and Basic SQL in PostgreSQL Course
More than 2 million students worldwide

Database Design and Basic SQL in PostgreSQL Course

4.1

Master relational database design and SQL from the ground up using PostgreSQL, one of the world's most powerful open-source database systems. Learn to model data, write confident queries, and build schemas that hold up in real production environments. This course takes you from core theory to hands-on practice — no prior database experience required.

Dedika for businesses

What you will learn:

  • Design normalized relational schemas using entity-relationship diagrams and key constraints.

  • Configure a fully functional PostgreSQL environment using both psql and pgAdmin.

  • Write multi-table SQL queries with INNER, OUTER, and self-joins plus subqueries.

  • Apply first, second, and third normal forms to eliminate redundancy in real data models.

  • Manage data reliably using INSERT, UPDATE, DELETE, and ACID-compliant transactions.

  • Interpret EXPLAIN output and create targeted indexes to optimize slow queries.

How you study in practice Database Design and Basic SQL in PostgreSQL Course

How you practice Database Design and Basic SQL in PostgreSQL Course

For companies looking to train their teams

With Dedika for businesses, the course includes exercises and examples tailored to your own business and the way your company needs.

Click here

Course Content

8 Chapters • 40 LessonsDuration between 4 and 360 hours (you decide)

Chapter 1See details

Relational Database Concepts and Theory

  • Lesson 1 • Introduction to Entity-Relationship Diagrams

    Teaches ER diagram notation to visualize data models before implementation. Diagrams created here are refined throughout the course.

  • Lesson 2 • Relationships Between Tables

    Covers one-to-one, one-to-many, and many-to-many relationships. Provides the vocabulary needed for entity-relationship modeling.

  • Lesson 3 • What Is a Relational Database

    Defines relational databases, contrasts them with flat files and NoSQL. Establishes the conceptual baseline for all subsequent design work.

  • Lesson 4 • Primary Keys and Foreign Keys

    Introduces key constraints that enforce entity and referential integrity. Students apply these concepts when linking tables in later chapters.

  • Lesson 5 • Tables, Rows, and Columns

    Explains table structure as the core storage unit. Connects column data types and row uniqueness to later normalization topics.

Chapter 2See details

Setting Up PostgreSQL Environment

  • Lesson 1 • Creating Your First Database

    Walks through creating a database and schema with proper ownership settings. This practice database is used in all remaining chapters.

  • Lesson 2 • Installing PostgreSQL Locally

    Guides installation on major operating systems and verifies a successful setup. A working local instance is required for all lab exercises.

  • Lesson 3 • Using psql Command-Line Tool

    Introduces the psql interface for executing SQL and meta-commands. Command-line fluency accelerates all subsequent query exercises.

  • Lesson 4 • Using pgAdmin Graphical Interface

    Covers pgAdmin navigation, query tool, and object browser. Provides a visual alternative for students less comfortable with the command line.

  • Lesson 5 • PostgreSQL Architecture Overview

    Explains the server-client model, processes, and storage layout. Understanding architecture prevents common configuration mistakes.

Chapter 3See details

Data Types and Table Creation

  • Lesson 1 • Text and Character Data Types

    Explains CHAR, VARCHAR, and TEXT with performance implications. Choosing the right text type affects storage efficiency and indexing.

  • Lesson 2 • CREATE TABLE and Column Constraints

    Teaches DDL syntax for table creation with NOT NULL, UNIQUE, and CHECK constraints. Constraints enforce data quality at the database level.

  • Lesson 3 • Date, Time, and Timestamp Types

    Introduces temporal types including timezone-aware variants. Proper temporal storage is essential for accurate reporting and scheduling.

  • Lesson 4 • Numeric and Boolean Data Types

    Covers integer, decimal, and boolean types with storage and precision trade-offs. Correct type selection prevents data loss and query errors.

  • Lesson 5 • Altering and Dropping Tables

    Covers ALTER TABLE and DROP TABLE commands for schema evolution. Safe alteration practices prevent accidental data loss in production.

Chapter 4See details

Normalization and Schema Design

  • Lesson 1 • Third Normal Form

    Explains transitive dependencies and how 3NF eliminates them. Most production schemas target 3NF as the practical design standard.

  • Lesson 2 • Designing a Multi-Table Schema

    Applies normalization to a realistic business scenario end-to-end. Students produce a complete ER diagram and matching DDL script.

  • Lesson 3 • First and Second Normal Forms

    Defines 1NF atomicity and 2NF full functional dependency. Students practice decomposing tables to satisfy each form.

  • Lesson 4 • Problems with Unnormalized Data

    Demonstrates insertion, update, and deletion anomalies in flat tables. Motivates normalization as the solution to structural data problems.

  • Lesson 5 • When to Denormalize

    Discusses read-performance trade-offs that justify selective denormalization. Students learn to balance integrity and query speed consciously.

Chapter 5See details

Basic SQL Queries with SELECT

  • Lesson 1 • Sorting Results with ORDER BY

    Teaches ascending and descending sort on single and multiple columns. Ordered output is required for reports and pagination.

  • Lesson 2 • Aggregate Functions and GROUP BY

    Introduces COUNT, SUM, AVG, MIN, and MAX with GROUP BY grouping. Aggregation enables summary reporting across categories.

  • Lesson 3 • Filtering Rows with WHERE

    Covers comparison, logical, and pattern operators in WHERE clauses. Filtering is the most frequently used skill in day-to-day SQL work.

  • Lesson 4 • SELECT and FROM Fundamentals

    Introduces SELECT syntax, column aliases, and the FROM clause. These are the building blocks of every query written in the course.

  • Lesson 5 • Computed Columns and Expressions

    Shows arithmetic, string concatenation, and CASE expressions in SELECT. Computed columns reduce post-processing in application code.

Chapter 6See details

Joining Tables and Multi-Table Queries

  • Lesson 1 • INNER JOIN Fundamentals

    Explains how INNER JOIN matches rows on a join condition. This is the most common join type used in relational query work.

  • Lesson 2 • Subqueries in SELECT and WHERE

    Teaches scalar and correlated subqueries embedded in SELECT and WHERE. Subqueries enable complex filtering without temporary tables.

  • Lesson 3 • CROSS JOIN and Self-Join

    Introduces Cartesian products and self-referencing table joins. These patterns solve hierarchical and combinatorial data problems.

  • Lesson 4 • Common Table Expressions

    Introduces WITH clauses to name and reuse intermediate result sets. CTEs improve readability and enable recursive query patterns.

  • Lesson 5 • LEFT, RIGHT, and FULL OUTER JOINs

    Covers outer joins that preserve unmatched rows from one or both tables. Outer joins are essential for finding missing or optional relationships.

Chapter 7See details

Data Manipulation and Transactions

  • Lesson 1 • Inserting Data with INSERT

    Covers single-row and multi-row INSERT syntax including returning values. Correct insert patterns prevent constraint violations.

  • Lesson 2 • Updating Rows with UPDATE

    Teaches targeted UPDATE statements with WHERE conditions and joins. Unguarded updates are a leading cause of data corruption.

  • Lesson 3 • Upsert with INSERT ON CONFLICT

    Covers the ON CONFLICT clause for idempotent insert-or-update operations. Upsert patterns are critical for data pipeline and sync workflows.

  • Lesson 4 • Deleting Rows with DELETE

    Explains DELETE with WHERE filters and cascading foreign key behavior. Safe deletion practices protect referential integrity.

  • Lesson 5 • Transactions and ACID Properties

    Introduces BEGIN, COMMIT, and ROLLBACK within ACID guarantees. Transactions ensure multi-step operations succeed or fail atomically.

Chapter 8See details

Indexes, Performance, and Query Analysis

  • Lesson 1 • Specialized Index Types

    Introduces Hash, GIN, GiST, and partial indexes for specific workloads. Choosing the right index type avoids unnecessary overhead.

  • Lesson 2 • How PostgreSQL Executes Queries

    Explains the query planner, statistics, and cost estimation. Understanding execution flow is prerequisite to meaningful optimization.

  • Lesson 3 • Query Optimization Techniques

    Applies rewriting strategies to reduce plan cost and improve throughput. Students optimize real queries using EXPLAIN feedback iteratively.

  • Lesson 4 • Reading EXPLAIN and EXPLAIN ANALYZE

    Teaches how to interpret EXPLAIN output nodes and actual timing. Plan reading is the primary diagnostic skill for slow queries.

  • Lesson 5 • B-Tree Indexes and Index Creation

    Covers B-tree index structure, creation syntax, and maintenance overhead. B-tree indexes are the default and most broadly applicable type.

Certification

Your valid completion certificate

This course is for you:

  • Self-taught developer: needs a structured foundation in data storage and modeling.

  • Data analyst: wants to move beyond spreadsheets into querying relational databases directly.

  • Computer science student: seeks practical PostgreSQL experience to complement academic coursework.

  • Career changer: entering tech and needs database skills to become job-ready faster.

  • Backend developer: works with databases daily but never formally studied schema design principles.

  • Small business owner: wants to understand the database powering their own application better.

What our students say

Your classes are perfect. I purchased the one-year package and finally have the opportunity to follow various topics of interest without needing to switch platforms... I thank you for everything you do, I've already recommended you to other people...
Giulio Carlo
Giulio CarloDigital Marketing Student
I like how the lessons are straight to the point and how I can switch chapters and skip content I don't need.
Mariana Ferres
Mariana FerresPhotography Student
I like the content and the presentation style and video transcription, which speeds up the process!
Luciana Alvarenga
Luciana AlvarengaNail Design Student
The platform is fast, simple to use. The diversity of content and complementary videos really help with learning.
André Felipe
André FelipePrompt Engineering Student

Top trainings

FAQ

Who is Dedika?

Is the certificate valid in United States?

Are the courses free?

What is the course workload?

What are the courses like?

How do the courses work?

What is the duration of the courses?

What is the cost or price of the courses?

What is an EAD or online course and how does it work?

PDF Course