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
  • Conditional Expressions: CASE WHEN ... THEN ... ELSE ... END

    SQL SELF
    Level 10, Lesson 0
    CASE WHEN expressions in SQL let you do if-else logic right inside your queries: you can classify values, handle NULLs, do calculations, and control how your data shows up. In this lecture, you'll learn how to use CASE to handle all sorts of situations you’ll run into in real tables.
    Available
  • Conditional expressions: CASE <expression> WHEN ... THEN ... ELSE ... END

    SQL SELF
    Level 10, Lesson 1
    Simple CASE form in SQL: how to use it as a compact switch-case replacement, for converting codes to text, visualizing statuses, and grouping. Examples, syntax, common mistakes, and comparison with searched CASE.
    Available
  • GREATEST() and LEAST() Functions and NULL

    SQL SELF
    Level 10, Lesson 2
    Learn how the GREATEST() and LEAST() functions work in PostgreSQL, how they interact with NULL, and how to avoid common mistakes when searching for max and min values in tables.
    Available
  • Real-life NULL Handling Examples: Calculations, Filtering, Sorting

    SQL SELF
    Level 10, Lesson 3
    In this lecture, you'll learn how to handle NULL values in SQL in practice: sorting, filtering, replacing, and aggregating data with missing values. Real-world examples will help you get how to properly work with NULLs in reports and queries.
    Available
  • Typical mistakes when working with NULL

    SQL SELF
    Level 10, Lesson 4
    In this lecture, you'll learn about the most common mistakes when working with NULL in SQL: from wrong comparisons and unexpected results from aggregate functions to sorting quirks and foreign key gotchas. Forewarned is forearmed!
    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