CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Intro to Control Structures: IF, CASE, RETURN

    SQL SELF
    Level 51, Lesson 0
    Control structures IF, CASE, and RETURN in PL/pgSQL let you build decision logic, do different stuff depending on conditions, and return values from functions. In this lecture, you'll learn how to use conditional operators and check out some common mistakes people make with them.
    Available
  • Using Loops: LOOP, FOR, WHILE in PL/pgSQL

    SQL SELF
    Level 51, Lesson 1
    In this lecture, you'll learn how to use the LOOP, FOR, and WHILE loops in the PL/pgSQL procedural language for PostgreSQL. We'll go over the syntax, examples, common mistakes, and best practices for automating repetitive tasks and processing data in your database.
    Available
  • Breaking and Continuing Loops: EXIT, CONTINUE

    SQL SELF
    Level 51, Lesson 2
    In this lecture, you'll learn how to control loop execution in PL/pgSQL using the EXIT and CONTINUE statements: how to break out of a loop based on a condition, skip certain iterations, combine both approaches, and avoid common mistakes when processing data in loops.
    Available
  • Nested Loops and Recursion

    SQL SELF
    Level 51, Lesson 3
    In this lecture, you'll learn how to use nested loops and recursion in PL/pgSQL: why you need them, how to implement them, when to use them, and what common mistakes you might run into. Examples with a multiplication table, factorial, and Fibonacci numbers will help you lock in the material with some hands-on practice.
    Available
  • Differences Between Functions and Procedures

    SQL SELF
    Level 51, Lesson 4
    In this article, you'll find out what makes functions and procedures different in PostgreSQL: what they're for, where to use them, what the limitations and advantages of each are. Detailed comparisons, code examples, and practical tips will help you pick the right tool for your tasks.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym