SQL Academy icon

SQL Academy

SQLDataDatabaseBackendBeginner

Manage and query databases effectively by learning SQL at SQL Academy.

🤖 AI-Powered
Course Overview

Master SQL: Your Gateway to Data Mastery with CoddyKit

In today's data-driven world, SQL (Structured Query Language) is an indispensable skill for anyone looking to build a career in software development, data analysis, or database administration. From managing customer information in a web application to powering complex financial systems, databases are at the core of nearly every modern digital solution. With CoddyKit's comprehensive "Learn SQL" curriculum, you'll embark on a practical journey to master SQL queries, database design, and advanced data management techniques. Whether you're a complete beginner or looking to solidify your foundational knowledge, our mobile learning platform provides an engaging and accessible path to becoming proficient in database management and unlocking powerful career opportunities.

Our Comprehensive SQL Learning Path

CoddyKit's "Learn SQL" category is structured into 12 meticulously designed mini-courses, each building upon the last to provide a holistic understanding of SQL and database systems. You'll gain hands-on experience with real-world scenarios, ensuring you're job-ready upon completion. Let's dive into what each mini-course offers:

1. Introduction to Databases and SQL (Level: A1)

Databases are the backbone for storing and managing vast amounts of structured data efficiently. SQL is the universal language that empowers users to interact with these databases. In this foundational section, you will gain a clear understanding of the core concepts of databases, the pivotal role of SQL, and explore the different types of database systems prevalent in the industry.

  • What is a Database? — Grasp the fundamental concepts of databases and their critical role in modern software applications and efficient data storage.
  • Types of Databases — Understand the key differences between relational, NoSQL, and cloud-based databases, and when to use each for your data management needs.
  • Introduction to SQL — Learn about SQL as the standard language for relational databases and how it's used to interact with and manage data.
  • Setting Up a Database Environment — Get hands-on by installing popular database systems like MySQL, PostgreSQL, or SQLite, and setting up a practice database to kickstart your learning.

2. SQL Basics - Retrieving Data with Queries (Level: A1)

The ability to retrieve and manipulate data effectively is central to working with databases. This section focuses on the essential SQL commands used for robust data retrieval, forming the cornerstone of all your database interactions.

  • The SELECT Statement — Master the fundamental SELECT statement to retrieve specific data and columns from your database tables.
  • Filtering Data with WHERE — Learn to use the WHERE clause to apply conditions, filter, and refine your SQL query results precisely.
  • Sorting and Limiting Results — Utilize ORDER BY to sort your data and LIMIT to restrict the number of rows returned, optimizing your query output.
  • Using Aliases (AS) — Discover how to assign custom, readable names to columns and tables using the AS keyword, improving query clarity.

3. SQL Joins and Combining Data (Level: A1)

Real-world databases store related data across multiple tables. SQL Joins are indispensable tools that allow you to combine this distributed data efficiently, creating comprehensive datasets for analysis and reporting.

  • Understanding Joins — Dive deep into INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN to effectively combine data from multiple tables.
  • Using UNION and UNION ALL — Learn to combine the results of multiple SELECT statements, managing duplicates with UNION and retaining all rows with UNION ALL.
  • Working with Subqueries — Master the power of nested queries (subqueries) to extract complex and conditional information from your databases.
  • Self Joins and Cross Joins — Explore advanced join types, including how to join a table with itself (self join) and perform Cartesian products (cross join).

4. Data Modification - Inserting, Updating, and Deleting Data (Level: A1)

Beyond retrieving data, effective database management requires the ability to modify records. This section teaches you the critical SQL commands to safely and efficiently insert, update, and delete data while maintaining data integrity.

  • The INSERT Statement — Learn to add new data rows to your tables, ensuring proper data types and adherence to database constraints.
  • Updating Data with UPDATE — Modify existing records in your database based on specific criteria, keeping your data current and accurate.
  • Deleting Records with DELETE — Safely remove unwanted records from tables without affecting the overall table structure.
  • Using Transactions (BEGIN, COMMIT, ROLLBACK) — Implement atomic operations using BEGIN, COMMIT, and ROLLBACK to ensure data consistency and integrity, especially in critical operations.

5. Database Design and Normalization (Level: A1)

A well-designed database is crucial for performance, scalability, and data consistency. This section introduces you to fundamental principles of database design, including normalization, to minimize redundancy and maximize efficiency.

  • Understanding Database Design Principles — Learn the core concepts behind designing efficient, scalable, and maintainable databases.
  • Normalization (1NF, 2NF, 3NF, BCNF) — Master the rules of database normalization to reduce data redundancy, improve data integrity, and optimize storage.
  • Database Relationships (One-to-One, One-to-Many, Many-to-Many) — Understand how tables relate to each other and how to model these relationships effectively for a robust database schema.
  • Denormalization and Performance Considerations — Explore scenarios where breaking normalization rules (denormalization) can improve query performance, and the trade-offs involved.

6. Indexing and Performance Optimization (Level: A1)

For large databases, query performance is paramount. Indexes are powerful tools that significantly speed up data retrieval. This section covers various indexing strategies and essential performance tuning techniques to make your databases fast and responsive.

  • What is an Index? — Understand how database indexes work, their benefits in speeding up queries, and their impact on write operations.
  • Types of Indexes (Primary, Unique, Composite, Full-text) — Learn about different index types and when to apply them for optimal SQL query performance.
  • Optimizing Queries with EXPLAIN and ANALYZE — Master tools like EXPLAIN and ANALYZE to understand query execution plans and identify performance bottlenecks.
  • Caching and Query Optimization Strategies — Implement caching mechanisms and other advanced strategies to reduce database load and improve overall system responsiveness.

7. Advanced SQL - Stored Procedures and Triggers (Level: A1)

Unlock the full power of SQL by creating reusable code directly within your database. This section delves into stored procedures and triggers, enabling you to automate complex tasks and enforce business logic at the database level.

  • Understanding Stored Procedures — Learn to create and manage stored procedures to encapsulate complex SQL logic, automate repetitive tasks, and improve application security.
  • Working with Triggers — Discover how to automatically execute SQL code in response to specific database events (INSERT, UPDATE, DELETE), enabling powerful automated workflows.
  • Using Functions in SQL — Create custom SQL functions to simplify complex calculations and reuse logic within your queries and stored procedures.
  • Cursors and Looping in SQL — Explore advanced techniques like cursors and looping constructs to handle row-by-row operations within stored procedures for intricate data processing.

8. Database Security and Access Control (Level: A1)

Protecting sensitive data is a critical responsibility for any developer or administrator. This section covers fundamental database security principles, including authentication, authorization, and best practices to safeguard your data against threats like SQL injection.

  • Understanding Database Security Principles — Learn the paramount importance of securing databases against unauthorized access, data breaches, and other cyber threats.
  • User Roles and Privileges (GRANT and REVOKE) — Master how to manage user permissions, define roles, and use GRANT and REVOKE to control access to database objects.
  • Data Encryption Techniques — Explore methods for protecting data at rest and in transit using various encryption techniques to enhance database security.
  • Preventing SQL Injection and Other Attacks — Implement robust strategies, including parameterized queries, to prevent common vulnerabilities like SQL injection and cross-site scripting.

9. Working with JSON and XML in Databases (Level: A1)

Modern databases are increasingly supporting semi-structured data formats. This section teaches you how to effectively store, manage, and query data in JSON and XML formats directly within your relational database systems like MySQL and PostgreSQL.

  • Storing and Querying JSON Data — Learn to leverage native JSON functions in databases to efficiently store, extract, and manipulate JSON data.
  • Working with XML Data — Understand how to store and retrieve XML data using SQL, including parsing and querying XML structures.
  • Converting Between Relational and NoSQL Data — Bridge the gap between traditional structured data and flexible semi-structured data, understanding conversion strategies.
  • Indexing and Searching JSON/XML Data — Discover techniques to improve query performance when working with semi-structured data types through specialized indexing.

10. Working with Big Data and Distributed Databases (Level: A1)

As data volumes explode, traditional databases face scaling challenges. This section introduces you to core big data concepts and explores the landscape of distributed database systems, including NoSQL solutions and horizontally scalable SQL databases.

  • Introduction to Big Data and SQL — Learn how SQL integrates with modern big data technologies and frameworks.
  • Understanding NoSQL Databases — Compare the strengths and weaknesses of relational databases with popular NoSQL solutions like MongoDB and Cassandra.
  • Distributed SQL Databases — Explore advanced database architectures like Google Spanner, CockroachDB, and Amazon Aurora, designed for massive scale and high availability.
  • Scaling Databases with Sharding and Replication — Master critical techniques like horizontal scaling (sharding) and replication to handle growing data loads and ensure fault tolerance.

11. Database Backup, Recovery, and Migration (Level: A1)

Data loss can be catastrophic for any organization. This crucial section teaches you essential strategies for database backup, recovery, and seamless migration, ensuring business continuity and data safety.

  • Importance of Database Backups — Understand different backup strategies (full, incremental, differential) and their critical role in disaster recovery.
  • Performing Backups and Restorations — Get hands-on with SQL tools like mysqldump and pg_dump to create and restore database backups effectively.
  • Migrating Databases Between Systems — Learn best practices and methodologies for smoothly migrating data from one database system to another.
  • Disaster Recovery Planning — Develop robust plans for handling database failures, minimizing downtime, and ensuring rapid recovery in the event of an incident.

12. Real-World Applications of SQL (Level: A1)

SQL is not just a theoretical language; it's a powerful tool used across countless industries. This final section showcases the diverse real-world applications of SQL in critical domains such as data analytics, finance, web development, and even emerging fields like machine learning.

  • SQL in Data Analysis and Reporting — Discover how SQL is used for extracting, transforming, and loading (ETL) data for business intelligence and data-driven decision-making.
  • SQL in Web Development — Learn how SQL databases power the backend of dynamic web applications built with popular frameworks in PHP, Python, Node.js, and more.
  • SQL in Financial and Banking Systems — Explore how SQL ensures the integrity and efficiency of transaction-heavy applications in the financial sector.
  • SQL in Machine Learning and AI — Understand the role of SQL in preparing, managing, and querying data for machine learning models and artificial intelligence applications.

What You'll Learn in This SQL Journey

By completing CoddyKit's "Learn SQL" curriculum, you will:

  • Master SQL Fundamentals: Confidently write, execute, and understand complex SQL queries for data retrieval, manipulation, and definition.
  • Design Robust Databases: Apply database design principles and normalization techniques to create efficient and scalable database schemas.
  • Optimize Database Performance: Utilize indexing strategies and query optimization tools to ensure your databases run at peak efficiency.
  • Ensure Data Integrity & Security: Implement transactions, access controls, and best practices to protect sensitive data from threats like SQL injection.
  • Work with Advanced SQL Features: Leverage stored procedures, triggers, and functions to automate tasks and enforce business logic.
  • Handle Modern Data Formats: Store and query semi-structured data like JSON and XML within relational databases.
  • Understand Big Data Concepts: Grasp the basics of distributed databases and scaling techniques for large datasets.
  • Manage Database Operations: Perform essential database backup, recovery, and migration tasks with confidence.
  • Apply SQL in Real-World Scenarios: See how SQL is used in data analysis, web development, finance, and emerging tech fields.

Who Is This Learn SQL Course For?

This comprehensive "Learn SQL" course is ideal for:

  • Aspiring Software Developers: Build a strong foundation in database interaction, a critical skill for backend development.
  • Data Analysts & Scientists: Enhance your ability to extract, clean, and prepare data for insightful analysis and reporting.
  • Database Administrators (DBAs) in Training: Gain essential knowledge in database design, performance, and security.
  • Backend Engineers: Deepen your understanding of how to efficiently manage and query data for your applications.
  • Students & Career Changers: Acquire a highly sought-after technical skill that opens doors in various tech industries.
  • Anyone Interested in Data: If you want to understand how data powers the digital world, this course is your perfect starting point.

Don't miss out on mastering one of the most in-demand skills in the tech industry. With CoddyKit, you can learn at your own pace, anytime, anywhere. Start your journey to becoming a SQL expert today and unlock a world of possibilities in software development, data management, and beyond. Your next big career opportunity is just a query away!

Start Learning →

How You'll Learn

🎯
Interactive Lessons
Hands-on coding exercises with real-time feedback
🤖
AI Tutor
Get instant help from our AI when you're stuck
💻
Built-in Editor
Write and run code directly in your browser
🏆
Certificate
Earn a certificate when you complete the course
Curriculum

45 Courses

Every course in the SQL Academy learning path.

01

SQL Foundations: Tables, Rows, Columns

A14 lessons

Start your SQL journey from zero. Understand what a relational database is, how data is organised into tables, why primary keys matter, how…

  • What an RDBMS Is and Why Tables Matter
  • Primary Keys and Uniqueness
  • NULL: The Third Truth Value
  • +1 more
02

SELECT Mastery

A14 lessonsPRO

Become fluent with the SELECT statement. Project columns, build expressions, filter rows with WHERE, sort the result set, and paginate larg…

  • Selecting Columns and Expressions
  • WHERE Filters: Comparison and Logic Operators
  • ORDER BY Single and Multiple Columns
  • +1 more
03

Filtering Patterns

A24 lessonsPRO

Master the everyday filter toolbox: pattern matching with LIKE, set membership with IN, range checks with BETWEEN, and safe handling of NUL…

  • LIKE Patterns and Wildcards
  • IN and NOT IN for Sets
  • BETWEEN for Ranges
  • +1 more
04

Aggregations and GROUP BY

A24 lessonsPRO

Summarise data with aggregate functions, group by one or more columns, filter groups with HAVING, and avoid the classic NULL-in-aggregate t…

  • COUNT, SUM, AVG, MIN, MAX
  • GROUP BY Single and Multiple Columns
  • HAVING vs WHERE
  • +1 more
05

Multi-Table Queries: JOIN Basics

A24 lessonsPRO

Bring tables together. Learn the relational join model, INNER vs OUTER joins, and how to query the same table twice using aliases and self-…

  • Why Joins (Relational Model Recap)
  • INNER JOIN Mechanics
  • LEFT/RIGHT JOIN and OUTER Joins
  • +1 more
06

Working with Dates and Times

A24 lessonsPRO

Handle the trickiest data type: time. Use date arithmetic, extract parts, manage time zones, and build period-over-period reports.

  • Date Arithmetic and INTERVAL
  • EXTRACT, DATE_TRUNC, AGE
  • Time Zones: TIMESTAMP vs TIMESTAMPTZ
  • +1 more
07

String Functions and Text Search

A24 lessonsPRO

Slice, clean and search text in SQL. Concatenate, trim, pad, replace, and use full-text search vectors for natural-language queries.

  • Concatenation: || and CONCAT
  • UPPER, LOWER, SUBSTRING, REPLACE
  • TRIM, LPAD, RPAD
  • +1 more
08

Practical INSERT / UPDATE / DELETE

A24 lessonsPRO

Move from reading to writing. Insert many rows, upsert with ON CONFLICT, update with joins, and delete safely without orphaning related dat…

  • INSERT with Multiple Rows
  • UPSERT: ON CONFLICT DO UPDATE (PostgreSQL)
  • UPDATE with FROM and JOIN-style Updates
  • +1 more
09

Constraints and Data Integrity

B14 lessonsPRO

Stop bad data at the door. Use NOT NULL, CHECK, UNIQUE, FOREIGN KEY, DEFAULT and generated columns so the database enforces business rules.

  • NOT NULL and CHECK Constraints
  • UNIQUE Constraints and Composite Keys
  • FOREIGN KEY and Referential Actions
  • +1 more
10

First Database Design Project

B14 lessonsPRO

Put it all together. Model a real blog database from scratch — users, posts, comments — pick keys and types, add indexes, and seed it with…

  • Modelling a Blog: Users Posts Comments
  • Choosing Keys and Types
  • Indexes for Common Queries
  • +1 more
11

Subqueries and CTEs

B14 lessonsPRO

Compose queries by nesting and naming. Master scalar, row and table subqueries, the difference between correlated and non-correlated, plain…

  • Scalar, Row, and Table Subqueries
  • Correlated vs Non-Correlated Subqueries
  • Common Table Expressions (WITH)
  • +1 more
12

Window Functions Deep Dive

B14 lessonsPRO

Unlock the most powerful feature of modern SQL. Compute running totals, ranks, moving averages, and time-series patterns without leaving SQ…

  • OVER, PARTITION BY, ORDER BY
  • ROW_NUMBER, RANK, DENSE_RANK
  • LAG, LEAD and Time-Series Patterns
  • +1 more
13

Set Operations and Pivot Patterns

B14 lessonsPRO

Combine result sets with UNION, INTERSECT, and EXCEPT. Pivot tall data into wide reports with CASE expressions and PostgreSQL crosstab.

  • UNION, INTERSECT, EXCEPT
  • UNION ALL vs UNION (Deduplication Cost)
  • CASE Expressions and Pivot Queries
  • +1 more
14

Advanced JOIN Patterns

B14 lessonsPRO

Go beyond INNER and LEFT. Use CROSS, LATERAL, anti- and semi-joins, and learn how to make many-way joins fast.

  • Cross Joins and Cartesian Products
  • Lateral Joins (LATERAL JOIN)
  • Anti-Joins and Semi-Joins (NOT EXISTS)
  • +1 more
15

PostgreSQL JSON and JSONB

B14 lessonsPRO

Treat documents like first-class data. Store, query and index JSONB safely, and know when to model with JSONB and when to normalise.

  • JSONB vs JSON: When to Use Each
  • Path Operators: -> ->> @>
  • Indexing JSONB with GIN
  • +1 more
16

Views and Materialized Views

B14 lessonsPRO

Turn complex queries into reusable objects. Use plain views for logical reuse, updatable views for transparent abstractions, and materialis…

  • Plain Views: Logical Reuse
  • Updatable Views and INSTEAD OF Triggers
  • Materialized Views and REFRESH Strategies
  • +1 more
17

Query Performance: EXPLAIN and Planning

B24 lessonsPRO

Stop guessing — read what the database is actually doing. Master EXPLAIN, recognise scan and join strategies, and fix the slow queries you…

  • Reading EXPLAIN and EXPLAIN ANALYZE
  • Sequential Scans vs Index Scans
  • Hash Join vs Merge Join vs Nested Loop
  • +1 more
18

Index Strategies

B24 lessonsPRO

Indexes are the lever between 'fast' and 'unusable'. Learn the index types, column ordering, partial and expression indexes, and how to kee…

  • B-tree vs Hash vs GiST vs GIN Indexes
  • Composite Indexes and Column Order
  • Partial and Expression Indexes
  • +1 more
19

Transactions and Concurrency Control

B24 lessonsPRO

Build correct multi-user systems. Understand ACID, the four isolation levels, deadlocks, and the trade-offs of optimistic vs pessimistic lo…

  • ACID Properties and Anomalies
  • Isolation Levels: READ COMMITTED, REPEATABLE READ, SERIALIZABLE
  • Deadlocks: Detection and Avoidance
  • +1 more
20

Triggers and Stored Procedures

B24 lessonsPRO

Push behaviour into the database when it makes sense. Write triggers, PL/pgSQL functions, and audit tables that update themselves.

  • Trigger Anatomy: BEFORE/AFTER, FOR EACH ROW
  • PL/pgSQL Function Basics
  • DO Blocks and Anonymous Code
  • +1 more
21

Advanced Indexing and Search

B24 lessonsPRO

Beyond B-tree. Fuzzy match with trigrams, search natural language with tsvector, query geometry with PostGIS, and embed vectors with pgvect…

  • Trigram Search (pg_trgm) for Fuzzy Matching
  • Full-Text Search with tsvector and GIN
  • Geospatial Indexing with PostGIS
  • +1 more
22

Window Functions Advanced

B24 lessonsPRO

Master the second half of window functions. Frame clauses, bucketing, and reporting patterns that read like dashboards.

  • Frame Clauses: ROWS vs RANGE
  • Lag/Lead with Frame Windows
  • Bucketing with NTILE and Cume_Dist
  • +1 more
23

Time-Series Patterns in SQL

B24 lessonsPRO

Store and query billions of metrics. Use TimescaleDB hypertables, continuous aggregates, compression and retention policies.

  • TimescaleDB Hypertables
  • Continuous Aggregates
  • Compression and Retention Policies
  • +1 more
24

Modern SQL Workflows

B24 lessonsPRO

Write SQL like an engineer. Use dbt to build analytics pipelines, lint with SQLFluff, test with dbt tests and Great Expectations, and ship…

  • DBT (Data Build Tool) Fundamentals
  • SQLFluff and Linting
  • Testing SQL: dbt tests, Great Expectations
  • +1 more
25

Schema Migrations at Scale

C14 lessonsPRO

Ship schema changes to a live production database without downtime. Master online migrations, concurrent indexes, and zero-downtime renames.

  • Online Migrations: Why ALTER TABLE Locks
  • Concurrent Indexes (CREATE INDEX CONCURRENTLY)
  • Zero-Downtime Column Renames
  • +1 more
26

Partitioning Large Tables

C14 lessonsPRO

Tame multi-billion row tables with declarative partitioning. Pick range, list or hash partitioning, prune at query time, and attach or deta…

  • Why Partition: Pruning, Maintenance
  • Range, List and Hash Partitioning
  • Detaching and Attaching Partitions
  • +1 more
27

Replication and High Availability

C14 lessonsPRO

Keep your database up and your data safe. Stream WAL to replicas, use logical replication, fail over leaders, and route reads to followers.

  • Streaming Replication and WAL
  • Logical Replication for Sharding
  • Failover and Leader Election (Patroni, Stolon)
  • +1 more
28

Performance Tuning: VACUUM, ANALYZE and Stats

C14 lessonsPRO

The DBA classics. Understand MVCC, fight bloat, keep planner statistics fresh, and unlock index-only scans.

  • MVCC and Bloat Causes
  • VACUUM, autovacuum, vacuum_cost_delay
  • ANALYZE and pg_statistic
  • +1 more
29

Database Observability and DBA Skills

C14 lessonsPRO

Run databases in production. Top queries with pg_stat_statements, log analysis with pgBadger, connection pooling, and capacity planning.

  • pg_stat_statements: Top Queries
  • pgBadger for Log Analysis
  • Connection Pooling: PgBouncer
  • +1 more
30

Sharding and Horizontal Scaling

C24 lessonsPRO

When one box runs out — shard. Pick a sharding strategy, deal with cross-shard queries, and know when you should NOT shard.

  • Sharding Strategies: Range, Hash, Directory
  • Cross-Shard Queries: The Hard Problem
  • Citus and Distributed Postgres
  • +1 more
31

Sorting Results: ORDER BY, LIMIT & Top-N

A14 lessonsPRO

Bring order to your data. Sort by one or many columns, control direction, and fetch just the rows you need with LIMIT and OFFSET.

  • Sorting with ORDER BY
  • Sorting by Multiple Columns
  • LIMIT and OFFSET
  • +1 more
32

Working with NULLs

A24 lessonsPRO

Master the trickiest value in SQL. Understand three-valued logic and handle missing data safely with IS NULL, COALESCE and NULLIF.

  • What NULL Really Means
  • IS NULL and IS NOT NULL
  • COALESCE and NULLIF
  • +1 more
33

Conditional Logic with CASE

A24 lessonsPRO

Add branching logic to your queries. Use CASE expressions to bucket, label and transform data right inside SELECT.

  • The CASE Expression
  • Searched vs Simple CASE
  • Bucketing and Labeling Data
  • +1 more
34

Numbers and Math in SQL

A24 lessonsPRO

Crunch numbers with confidence. Arithmetic, rounding, casting and handy math functions to compute exactly what you need.

  • Arithmetic and Operators
  • Rounding and Truncating
  • Integer vs Decimal Division
  • +1 more
35

DISTINCT and Removing Duplicates

A24 lessonsPRO

Clean, unique results every time. Use DISTINCT, DISTINCT ON and dedup techniques to handle repeated rows.

  • SELECT DISTINCT Basics
  • DISTINCT on Multiple Columns
  • PostgreSQL DISTINCT ON
  • +1 more
36

Self Joins and Hierarchical Data

B14 lessonsPRO

Relate a table to itself. Model managers, categories and friend lists, and query parent-child relationships.

  • What Is a Self Join
  • Employees and Managers
  • Comparing Rows in the Same Table
  • +1 more
37

Recursive Queries with WITH RECURSIVE

B14 lessonsPRO

Query trees and graphs in pure SQL. Walk hierarchies of any depth using recursive common table expressions.

  • How Recursive CTEs Work
  • Walking a Category Tree
  • Generating Series and Sequences
  • +1 more
38

GROUPING SETS, ROLLUP & CUBE

B14 lessonsPRO

Summarize data at many levels at once. Build subtotals and grand totals without UNION-ing dozens of queries.

  • Beyond a Single GROUP BY
  • ROLLUP for Subtotals
  • CUBE for All Combinations
  • +1 more
39

EXISTS, ANY, ALL & Correlated Subqueries

B14 lessonsPRO

Write powerful predicates. Use EXISTS, IN, ANY and ALL with correlated subqueries to express complex conditions.

  • Correlated Subqueries
  • EXISTS and NOT EXISTS
  • IN vs ANY vs ALL
  • +1 more
40

Working with Arrays in PostgreSQL

B14 lessonsPRO

Store and query lists inside a single column. Build, search and expand array data the PostgreSQL way.

  • Array Columns Basics
  • Searching Inside Arrays
  • UNNEST and Aggregating
  • +1 more
41

Row-Level Security & Access Control

B24 lessonsPRO

Protect data at the row level. Manage roles, privileges and policies so users only see what they should.

  • Roles and Privileges
  • Row-Level Security Policies
  • Column-Level Permissions
  • +1 more
42

Backup, Restore & Disaster Recovery

B24 lessonsPRO

Never lose data. Plan and execute backups, point-in-time recovery and restores so you can survive failures.

  • Logical vs Physical Backups
  • Point-in-Time Recovery
  • Testing Your Restores
  • +1 more
43

Geospatial SQL with PostGIS

C14 lessonsPRO

Query the world. Store points, lines and polygons and answer location questions with PostGIS spatial SQL.

  • Spatial Data Types
  • Distance and Nearest Neighbors
  • Spatial Joins and Containment
  • +1 more
44

Data Warehousing & Star Schemas

C14 lessonsPRO

Design SQL for analytics. Build fact and dimension tables, star schemas and analytical queries for reporting at scale.

  • OLTP vs OLAP
  • Fact and Dimension Tables
  • Star and Snowflake Schemas
  • +1 more
45

Event Sourcing & Temporal Tables

C14 lessonsPRO

Keep history, not just the present. Model append-only events, audit logs and time-travel queries in SQL.

  • Why Keep History
  • Append-Only Event Tables
  • Temporal and Versioned Rows
  • +1 more

Start SQL Academy Now

Join thousands of learners mastering programming with AI-powered lessons.

Get Started Free →Browse All Courses