Multiple choice technology programming languages

Whats true about EJB QL queries?

  1. The SELECT clause designates query domain

  2. An EJB QL query may have parameters.

  3. The WHERE clause determines the types of objects to be selected

  4. Of the three clause types, SELECT, FROM and WHERE, only the SELECT clause is required

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

EJB QL (EJB Query Language) supports parameters in queries using positional syntax (?1, ?2, etc.). The FROM clause designates the query domain (the entity abstract schema types), not SELECT. The WHERE clause filters results but doesn't determine types - that's FROM's job. Both FROM and SELECT are typically required (SELECT can be optional only for aggregate queries).