[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4244
  • Last Modified:

pl/sql Nested Case Statement

Hi All,
I need help with a Nested Case statement for the following:
CASE WHEN (Field1) in ('ABC', 'CDE','FGH')
THEN 'Closed'
CASE WHEN (Field1) in ('IJK', 'LMN', 'OPQ')
THEN 'Open'
CASE WHEN (fIELD1) IN ('RST','UVW','XY')
THEN 'PENDING'
End
0
syhctl
Asked:
syhctl
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
no need to nest the case statements:
CASE WHEN (Field1) in ('ABC', 'CDE','FGH')
     THEN 'Closed'
     WHEN (Field1) in ('IJK', 'LMN', 'OPQ')
     THEN 'Open'
     WHEN (fIELD1) IN ('RST','UVW','XY')
     THEN 'PENDING'
End

Open in new window

0
 
syhctlAuthor Commented:
Thanks Much
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now