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

    What does the SQL CASE expression do? It iterates over table rows and returns a value for each column. It evaluates conditions and returns a value based on the first true condition. It …

  2. CASE Statement in SQL Examples - SQL Server Tips

    Apr 20, 2021 · This tip will teach you when and how you can use CASE in T-SQL statements with several code examples to give you a better understanding.

  3. SQL CASE WHEN Explained: 10 Easy Examples for Beginners

    Jan 16, 2024 · In this article, you'll find real-world practical exercises using the CASE WHEN statement for data analysis. This statement enables analysts to craft customized logic for …

  4. 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.

  5. SQL CASE WHEN with Multiple Conditions – Syntax, Examples

    Oct 7, 2025 · In this guide, we break down how to use the SQL CASE WHEN statement with multiple conditions across platforms like MySQL, SQL Server, Oracle, and PostgreSQL. By the …

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

    Nov 18, 2025 · For example, you can use CASE in statements such as SELECT, UPDATE, DELETE and SET, and in clauses such as <select_list>, IN, WHERE, ORDER BY, and …

  7. SQL CASE Expression

    Summary: in this tutorial, you will learn how to use the SQL CASE expression to add if-else logic to the SQL statements. The CASE expression allows you to add if-else logic to queries, …

  8. 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.

  9. SQL CASE Statement Explained with Real-World Examples

    Jul 14, 2025 · In this quick guide, you’ll explore how to use CASE to implement branching logic in your queries. We’ll cover its two forms, show real-world use cases, and explain where and …

  10. Using CASE Statements in SQL SELECT Queries - Baeldung

    Nov 29, 2024 · In this article, we explored the role of CASE statements in SQL for adding conditional logic to queries. We covered both simple and searched CASE statements, learning …