Tags / case
Using Conditional Logic in SQL to Return a Single Row with Specific Conditions
Using Table Aliases to Retrieve Data from One Table Based on Values Present in Another Table
Inserting Data into Different Columns Based on Result from Another Table
SQL Conditional Select and Conditionals in the WHERE Clause
Understanding the Limitations of Min(date) in SQL Case Statements: Workarounds without Window Functions
Understanding Case Statements and Aliases in SQL Server: Workarounds and Best Practices
Optimizing Custom SQL in Tableau: A Flexible Solution to Rollup Calculations
Creating Additional Rows in SQL Server Select Statements: Techniques Using CTEs and Derived Tables