Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 8 gru 2016 · If I understand the question correctly, you want the equivalent of decode but in T-SQL. Select YourFieldAliasName = CASE PC_SL_LDGR_CODE WHEN '02' THEN 'DR' ELSE 'CR' END

  2. 23 kwi 2011 · One of the readers of the blog has sent me a question regarding how to use the DECODE function in SQL Server. SELECT DECODE(Letters, 'First',1, 'Second',2, 'Third',3, 0) AS LN. FROM LettersTable. In SQL Server the equivalent code is CASE statement.

  3. www.sqltutorial.org › sql-comparison-functions › sql-decodeSQL DECODE - SQL Tutorial

    SELECT DECODE (3, 1, 'Equal 1,', 2, 'Equal 2', 'Not Equal 1 or 2'); Code language: SQL (Structured Query Language) (sql) This example works like the following IF-THEN-ELSEIF-ELSE statement: IF 3 = 1 THEN RETURN 'Equal 1'; ELSE IF 3 =2 THEN RETURN 'Equal 2'; ELSE RETURN 'Not Equal 1 or 2'; END IF ; Code language: SQL (Structured Query Language ...

  4. DECODE allows you to compare a value to a set of possible values and return a corresponding result when a match is found. It is often used for data transformation, simplifying complex CASE statements, and providing concise value substitution based on specific conditions.

  5. 20 lis 2017 · I have a varchar column in a table in SQL Server that holds a Base64-encoded text string, which I would like to decode into its plain text equivalent. Does SQL Server have any native functionality to handle this type of thing?

  6. 22 paź 2012 · Sometimes we need to compare SQL Server tables and/or data to know what has changed. This article shows different ways to compare data, datatypes and table structures when using SQL Server.

  7. Learn how to decode values based on specified conditions, replacing complex CASE statements with concise syntax. Explore practical examples showcasing the versatility of DECODE in SQL queries, enabling efficient data manipulation and enhanced query performance.

  1. Ludzie szukają również