Which expression in the query’s WHERE clause is correct?

A developer wants to create a Java Persistence query that restricts the results of an agE. based
query. Specifically, the developer wants to select everyone who is NOT a teenager. (A teenager is
someone who is 13,14,15,16,17,18, or 19 years old.) Which expression in the query’s WHERE
clause is correct?

A developer wants to create a Java Persistence query that restricts the results of an agE. based
query. Specifically, the developer wants to select everyone who is NOT a teenager. (A teenager is
someone who is 13,14,15,16,17,18, or 19 years old.) Which expression in the query’s WHERE
clause is correct?

A.
WHERE p.age NOT BETWEEN 12 and 20

B.
WHERE p.age NOT BETWEEN 13 and 20

C.
WHERE p.age NOT BETWEEN 12 and 19

D.
WHERE p.age NOT BETWEEN 13 and 19



Leave a Reply 0

Your email address will not be published. Required fields are marked *