About 58,700 results
Open links in new tab
  1. SQL Case Expression Syntax? - Stack Overflow

    Aug 7, 2008 · case expression is the correct term as they evaluate to a scalar value (also. in SQL a statement is terminated by the "statement terminator" which is the semi-colon).

  2. mysql - Case Expression vs Case Statement - Stack Overflow

    Sep 15, 2012 · What is the difference between a Case Expression and a Case Statement in MySQL? When can they be used, and what are the benefits of using one over the other? Case …

  3. Apache spark dealing with case statements - Stack Overflow

    Oct 11, 2016 · I am dealing with transforming SQL code to PySpark code and came across some SQL statements. I don't know how to approach case statments in pyspark? I am planning on …

  4. CASE .. WHEN expression in Oracle SQL - Stack Overflow

    CASE .. WHEN expression in Oracle SQL Asked 13 years, 2 months ago Modified 4 years, 9 months ago Viewed 965k times

  5. Best way to do nested case statement logic in SQL Server

    I'm writing an SQL Query, where a few of the columns returned need to be calculated depending on quite a lot of conditions. I'm currently using nested case statements, but its getting messy. …

  6. sql - How to use REGEXP_LIKE in a CASE statement? - Stack Overflow

    Oct 22, 2013 · SQL works in a different way to most languages when evaluating expressions - it doesn't return true and then compare that with other values; you need to put the condition that …

  7. Writing case statement based on BETWEEN operator in sql server

    Mar 23, 2015 · SELECT CASE <expression>> WHEN BETWEEN 0 AND 10 THEN '0-10' WHEN BETWEEN 11 AND 20 THEN '11-20' WHEN BETWEEN 21 AND 30 THEN '21-30' ...

  8. SQL Server CASE .. WHEN .. IN statement - Stack Overflow

    May 18, 2011 · On SQL server 2005 I am trying to query this select statement SELECT AlarmEventTransactionTableTable.TxnID, CASE AlarmEventTransactions.DeviceID WHEN …

  9. sql - Using 'case expression column' in where clause - Stack …

    Jan 14, 2016 · Using 'case expression column' in where clause Asked 14 years, 5 months ago Modified 9 years, 10 months ago Viewed 76k times

  10. OR is not supported with CASE expression SQL Server

    Apr 30, 2024 · The OR operator in the WHEN clause of a CASE expression is not supported. How can I do this? CASE ebv.db_no WHEN 22978 OR 23218 OR 23219 THEN 'WECS 9500' …