Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CASE Statement Limit - Select statement

user1758353Nov 11 2009 — edited Nov 11 2009
Hi All,

I am having issue while running select statment with CASE statments more than 150 . Can anyone let me know is there any limit for CASE Statement . I have more than 300 WHEN conditions to get the result. see below error message


Select
CASE
WHEN deptname ='ABC' then 'ABC'
WHEN deptname='BCD' Then 'BCD'
.
.
.
.
.
.
.
.

.

END
FROM user. dept Test.caci c
where C.ZIPcode= SUBSTR(U.zipcode, 1, 5)

Error message :


ORA-00939 too many arguments for function
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2009
Added on Nov 11 2009
5 comments
4,460 views