Hi Andrei,

In OrientDB you can use the if() function to do what you need. I just added
it to the documentation, please check this wiki page.

https://github.com/orientechnologies/orientdb/wiki/SQL-Functions

Soon it will also be in the official Docs page

Luigi


2014-12-19 8:51 GMT+01:00 Andrei Serea <[email protected]>:
>
> Hello!
>
> I'm faced with a problem I cannot seem to find a solution for.
> Very simply put, I need to write a query that cannot do without the
> typical "case" clause from SQL. Or at least I think it can't.
>
> The idea is to return a value if a condition is met or a different one
> otherwise.
> But I just couldn't find anywhere something that would help me implement
> this in the OrientDB query language.
>
> Any ideas?
>
> Thanks,
> Andrei
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to