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

    Aug 7, 2008 · What is the complete and correct syntax for the SQL Case expression?

  2. 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 …

  3. 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. …

  4. sql - Getting error on CASE statement, incorrect syntax near ...

    The problem is happening because you have both case statements enclosed in parentheses. Everything enclosed inside (both case statements) would get returned as a single column.

  5. Is SQL syntax case sensitive? - Stack Overflow

    Sep 30, 2008 · Is SQL case sensitive? I've used MySQL and SQL Server which both seem to be case insensitive. Is this always the case? Does the standard define case-sensitivity?

  6. sql - Syntax error at or near “case” when using a case statement ...

    Jul 30, 2017 · Syntax error at or near “case” when using a case statement Asked 8 years, 2 months ago Modified 8 years, 2 months ago Viewed 18k times

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

    CASE .. WHEN expression in Oracle SQL Asked 13 years, 1 month ago Modified 4 years, 8 months ago Viewed 961k times

  8. T-SQL: Using a CASE in an UPDATE statement to update certain …

    T-SQL: Using a CASE in an UPDATE statement to update certain columns depending on a condition Asked 14 years, 9 months ago Modified 3 years, 5 months ago Viewed 406k times

  9. How do I do multiple CASE WHEN conditions using SQL Server …

    What I'm trying to do is use more than one CASE WHEN condition for the same column. Here is my code for the query: SELECT Url='', p.ArtNo, p.[Description], ...

  10. Can I use CASE statement in a JOIN condition? - Stack Overflow

    Apr 21, 2012 · A CASE expression returns a value from the THEN portion of the clause. You could use it thusly: SELECT * FROM sys.indexes i JOIN sys.partitions p ON i.index_id = …