About 827,000 results
Open links in new tab
  1. PL/SQL IF Statement - Oracle Tutorial

    IF THEN ELSE statement example # The following example sets the sales commission to 10% if the sales revenue is greater than 200,000. Otherwise, the sales commission is set to 5%.

  2. Oracle / PLSQL: IF-THEN-ELSE Statement - TechOnTheNet

    This Oracle tutorial explains how to use the IF-THEN-ELSE statement in Oracle with syntax and examples. In Oracle, the IF-THEN-ELSE statement is used to execute code when a condition …

  3. IF-THEN logic in SELECT and WHERE with CASE expressions in Oracle SQL

    Dec 7, 2023 · If you want to do if-else-then logic in select, where or anywhere else in a statement, you need a case expression. This is a series of when clauses that the database runs in order: …

  4. Oracle PL/SQL IF THEN ELSE Statement: ELSIF, NESTED-IF - Guru99

    Jun 28, 2024 · In this Oracle PL/SQL tutorial, we will learn Decision-Making Statements like If-Then, If-Then-Else, If-Then-Elsif, Nested-If.

  5. sql - If statement in select (ORACLE) - Stack Overflow

    So simple you can use case statement here. CASE WHEN ISSUE_DIVISION is null then "Null Value found" //give your option. Else 1 End. This will return 0 if both values are null which …

  6. sql - if (condition, then, else) in Oracle - Stack Overflow

    Jan 24, 2013 · SELECT * FROM TheTable WHERE field1 = CASE field2 WHEN 0 THEN 'abc' WHEN 1 THEN 'def' ELSE '' END CASE statements are not as succinct, obviously, but they …

  7. IF-THEN - Oracle PL/SQL Tutorial

    The IF-THEN statement in PL/SQL is used for conditional execution of a block of code. It allows you to specify a condition, and if that condition evaluates to true, then a specified block of code …

  8. How to use Oracle PL/SQL - IF-THEN-ELSE Statement

    In Oracle PL/SQL, the IF-THEN-ELSE statement is used for conditional execution of code. It allows you to execute one block of code if a specified condition evaluates to true and another …

  9. IF Statement - Oracle

    There are three forms of IF statements: IF-THEN, IF-THEN-ELSE, and IF-THEN-ELSIF. The simplest form of IF statement associates a Boolean expression with a sequence of statements …

  10. PL/SQL IF Statement - PL/SQL Tutorial

    This tutorial shows you how to use PL/SQL IF statements with three forms: IF-THEN, IF-THEN-ELSE and IF-THEN_ELSEIF statements.