Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop Dynamic and EJB query > Develop applications that use EJB query > EJB query language


Scalar functions

An EJB query contains scalar functions for doing type conversions, string manipulation, and for manipulating date-time values.

The list of scalar functions is documented in the topic EJB query: Scalar functions.


Example: Scalar functions

Find employees hired in 1999:

SELECT OBJECT(e) FROM EmpBean e where YEAR(e.hireDate) = 1999

The only scalar functions that are guaranteed to be portable across backend datastore vendors are the following:

The other scalar functions should be used only when DB2 is the backend datastore.


Related


EJB query: Scalar functions
EJB query language
Use EJB query

+

Search Tips   |   Advanced Search