Yahoo Poland Wyszukiwanie w Internecie

Search results

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

    Learn how to use the SQL DECODE() function to add if-then-else logic to queries. See syntax, examples, and comparison with IF statement.

  2. The syntax for the SQL DECODE function is as follows: DECODE (expression, search1, result1, search2, result2, ..., default_result) expression: The value you want to compare. search1, search2, ...: Values or expressions to compare against expression. result1, result2, ...:

  3. 6 sie 2024 · The syntax of the DECODE() function is as shown below: DECODE(expression, search1, result1, search2, result2, ..., default) Where: expression: The value to compare. search: The value to compare against the expression. result: The value returned if the expression matches the search value. default: The value returned if no match is found (optional).

  4. 8 gru 2016 · Oracle's DECODE is NULL safe, meaning that. DECODE(a, b, c, d, e, f) Translates to this standard SQL expression (which can be used starting with SQL Server 2022): CASE WHEN a IS NOT DISTINCT FROM b THEN c WHEN a IS NOT DISTINCT FROM d THEN e ELSE f END In older SQL Server versions, an emulation using EXISTS and INTERSECT is possible:

  5. The following illustrates the syntax of the Oracle DECODE() function: DECODE (e , s1, r1[, s2, r2], ...,[,sn,rn] [, d]); Code language: SQL (Structured Query Language) (sql) Arguments e. The first argument e is the value to be searched. The function automatically converts e to the data type of s1 before comparing. s1, s2, .. sn

  6. DECODE. Syntax. Description of the illustration decode.eps. Purpose. DECODE compares expr to each search value one by one. If expr is equal to a search, then Oracle Database returns the corresponding result. If no match is found, then Oracle returns default. If default is omitted, then Oracle returns null.

  7. 13 mar 2023 · Learn how to use DECODE function in SQL to perform IF-THEN-ELSE logic in ORACLE databases. See the syntax, parameters and examples of DECODE function with college data.

  1. Ludzie szukają również