About 518,000 results
Open links in new tab
  1. SQL CASE Expression - W3Schools

    The CASE expression goes through conditions and returns a value when the first condition is met (like an if-then-else statement). So, once a condition is true, it will stop reading and return the …

  2. How to Use the CASE Statement in SQL (With Examples)

    Learn how to use the SQL `CASE` statement to implement conditional logic efficiently. Explore its syntax, use cases, best practices, and performance considerations.

  3. SQL CASE WHEN with Multiple Conditions - Interview Query

    Oct 7, 2025 · By the end, you’ll know how to write and optimize case when in sql logic—including how to use a case statement with multiple conditions effectively in real-world queries.

  4. SQL CASE Statement - GeeksforGeeks

    Dec 10, 2024 · In this article, we'll learn the SQL CASE statement in detail, with clear examples and use cases that show how to leverage this feature to improve your SQL queries.

  5. SQL CASE Statement in WHERE Clause Examples

    Oct 3, 2025 · Learn about different ways you can use a CASE statement in the WHERE clause for a T-SQL statement with these several examples.

  6. Using CASE Statements in SQL SELECT Queries - Baeldung

    Nov 29, 2024 · CASE statements are a way to add if-then logic to SQL SELECT queries. They test conditions and return different values based on the results. This makes queries more …

  7. SQL CASE Expression

    This tutorial shows you how to use two forms of SQL CASE expressions including simple CASE and searched CASE expressions.

  8. CASE (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 18, 2025 · Within a SELECT statement, a simple CASE expression allows for only an equality check; no other comparisons are made. The following example uses the CASE …

  9. SQL CASE Statement (With Examples) - Programiz

    In this tutorial, you will learn about the SQL CASE statement with the help of examples.

  10. CASESQL Tutorial

    In this syntax, the CASE statement evaluates each WHEN condition in order, returning the corresponding result when a condition is true. If none of the conditions are true, the statement …