Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82389

How to use CASE expression in OQL SELECT

$
0
0

I'm trying to return a conditional expression within the SELECT part of an OQL statement:

SELECT (...)

COUNT(ReplyUnread.Content) as RepliesUnread,
CASE RepliesUnread WHEN '0' THEN 'noUnread' ELSE 'hasUnread'

(...)

 

However, the query cannot be parsed, without any clear error description. How should I use the case statement?


Viewing all articles
Browse latest Browse all 82389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>