About 226,000 results
Open links in new tab
  1. CASE .. WHEN expression in Oracle SQL - Stack Overflow

    SELECT status, CASE status WHEN 'a1' THEN 'Active' WHEN 'a2' THEN 'Active' WHEN 'a3' THEN 'Active' WHEN 'i' THEN 'Inactive' WHEN 't' THEN 'Terminated' END AS StatusText …

  2. Conditional WHERE clause with CASE statement in Oracle

    I'm brand-new to the Oracle world so this could be a softball. In working with an SSRS report, I'm passing in a string of states to a view. The twist is that the users could also pick a selection...

  3. oracle sql - select statement with multiple "case when" and check …

    Jul 11, 2016 · I look for a working example where I can use mutliple when case statment wihch check to verify if a specific text is contained: e.g. SELECT ID, NAME, (SELECT (Case when …

  4. sql - Using 'case expression column' in where clause - Stack …

    Jan 14, 2016 · SELECT ename , job , CASE deptno WHEN 10 THEN 'ACCOUNTS' WHEN 20 THEN 'SALES' ELSE 'UNKNOWN' END AS department FROM emp /* !!! */ WHERE …

  5. Oracle SQL CASE WHEN IS NULL - Stack Overflow

    Aug 7, 2022 · CASE s.COURSE_SCHEDULED_ID WHEN NULL THEN but that will go to the else value because the comparison is " expr is equal to comparison_expr ", and nothing is equal to …

  6. sql - How to use select statement in CASE WHEN ELSE statement …

    May 6, 2015 · How to use select statement in CASE WHEN ELSE statement in oracle? Asked 10 years, 7 months ago Modified 5 years, 2 months ago Viewed 21k times

  7. Can I use CASE statement in a JOIN condition? - Stack Overflow

    Apr 21, 2012 · 62 Instead, you simply JOIN to both tables, and in your SELECT clause, return data from the one that matches: I suggest you to go through this link Conditional Joins in SQL …

  8. oracle database - sql nested case statements - Stack Overflow

    Jan 12, 2015 · sql oracle-database case edited Jan 12, 2015 at 13:04 suslov.nikita 44.7k 11 92 113

  9. How to use case statement inside where clause in oracle?

    Oct 20, 2016 · I only gave this answer to show how to use a case statement in a where clause. Some people may be looking for this and the title of your question may have lured them to this …

  10. oracle database - How to use If condition inside a Case statement ...

    Feb 29, 2012 · Is this righ? SQL> select case when value in (1000) then null 2 when user in ('ABC') then user 3 when area in ('DENVER') then 4 if value = 2000 then 'Service1' 5 else …