Which Java Persistence query will return those users with the highest salaries?

A developer is working with an entity User, which has an identity field and a salary field. Which
Java Persistence query will return those users with the highest salaries?

A developer is working with an entity User, which has an identity field and a salary field. Which
Java Persistence query will return those users with the highest salaries?

A.
SELECT u FROM User u WHERE u.salary >= ALL (SELECT d.salary FROM User d)

B.
SELECT u FROM User u WHERE u.salary >= ANY (SELECT d.salary FROM User d)

C.
SELECT u FROM User u WHERE ALL(u.salary >= (SELECT d.salary FROM User d))

D.
SELECT u FROM User u WHERE u.salary >= (SELECT ALL(d.salary) FROM User d)



Leave a Reply 0

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