About 99,200 results
Open links in new tab
  1. How do I perform an IF...THEN in an SQL SELECT?

    Sep 15, 2008 · Both IIF() and CASE resolve as expressions within a SQL statement and can only be used in well-defined places. The CASE expression cannot be used to control the flow of …

  2. sql - Using an IIF statement in a where clause - Stack Overflow

    Using an IIF statement in a where clause Asked 7 years, 11 months ago Modified 7 years, 11 months ago Viewed 31k times

  3. SQL: IF clause within WHERE clause - Stack Overflow

    Sep 18, 2008 · Is it possible to use an IF clause within a WHERE clause in MS SQL? Example: WHERE IF IsNumeric(@OrderNumber) = 1 OrderNumber = @OrderNumber ELSE …

  4. SQL Server IIF vs CASE - Stack Overflow

    Apr 3, 2014 · IIF is a non-standard T-SQL function. It was added to SQL SERVER 2012, so that Access could migrate to SQL Server without refactoring the IIF's to CASE before hand.

  5. sql - How to use multiple conditions (With AND) in IIF expressions …

    How to use multiple conditions (With AND) in IIF expressions in ssrs Asked 11 years, 7 months ago Modified 2 years, 10 months ago Viewed 220k times

  6. Access Query SQL IIf Statement with OR - Stack Overflow

    In the first IIF statement, I cannot get the query to return any records. I want it to return all records with either "MOTOR" or "SHAFT" in the PUMP_CODE field when both referenced objects are …

  7. if statement - SQL Server INLINE IF ELSE - Stack Overflow

    Jul 7, 2011 · I understand that this question (which shows up at the top of google results for "sql server inline if") is 2 years old, but with SQL Server 2012, the answers are somewhat …

  8. sql - IIF (...) not a recognized built-in function - Stack Overflow

    Aug 20, 2012 · SQL Server 2012 introduces 14 new built-in functions. These functions ease the path of migration for information workers by emulating functionality that is found in the …

  9. How do I check if a Sql server string is null or empty

    13 In SQL Server 2012 you have IIF, e.g you can use it like SELECT IIF(field IS NULL, 1, 0) AS IsNull The same way you can check if field is empty.

  10. Using IIF in SQL update statement - Stack Overflow

    Feb 15, 2013 · Using IIF in SQL update statement Asked 12 years, 7 months ago Modified 12 years, 7 months ago Viewed 32k times