About 108,000 results
Open links in new tab
  1. sql - Decode equivalent in postgres - Stack Overflow

    Mar 7, 2013 · There is no equivalent to the Oracle's DECODE() Function In Postgres. Is there anyone who wrote decode as a Function?

  2. sql - Using decode to check for negative and positive values - Stack ...

    Hi is there a way to use decode to check for positive and negative values in sql? e.g.

  3. oracle database - SQL Decode Null Values - Stack Overflow

    Mar 15, 2012 · I agree with @sql_mommy that CASE would probably look better. But I disagree about using TechOnTheNet as your primary source of information. You are usually better off with the …

  4. sql - MySQL equivalent of DECODE function in Oracle - Stack Overflow

    Jan 16, 2011 · Another MySQL option that may look more like Oracle's DECODE is a combination of FIELD and ELT. In the code that follows, FIELD() returns the argument list position of the string that …

  5. Is there any way to do HTML decode in SQL Server?

    Jan 31, 2015 · SQL Server supports the XML datatype, and it supports decoding XML/HTML encoded entities. If you just cast the string to the XML datatype, you can use the built in decode function.

  6. Decode function inside a decode function in SQL - Stack Overflow

    Sep 11, 2019 · What does the sql statement below print with explanation please: SELECT DECODE (2, 2, DECODE(3, 7, 2, 4, 5, 6)) FROM DUAL I understand the decode function alone but ...

  7. sql - CASE vs. DECODE - Stack Overflow

    Jul 7, 2010 · 2 CASE is a statement and DECODE is a function We can use the CASE in the where clause and can not use the DECODE in the where clause. DECODE can check equality operators …

  8. sql - Using decode in where clause, with "in" - Stack Overflow

    Aug 27, 2015 · 0 DECODE is an expression, and it will work in the IN list along with other values in the list, you just need to take care of the syntax and parenthesis. What matters is the final value that you …

  9. DECODE( ) function in SQL Server - Stack Overflow

    Oct 13, 2009 · DECODE ( ) function in SQL Server Asked 16 years, 2 months ago Modified 2 years, 10 months ago Viewed 443k times

  10. DECODE Oracle SQL - Stack Overflow

    Oct 25, 2014 · SELECT promo_id, DECODE(NVL(promo_cost,0),promo_cost, promo_cost * 0.25, 100) "Discount" FROM promotions; SELECT promo_id, DECODE(promo_cost,10000, …