nerdexam
Oracle

1Z0-860 · Question #52

A developer wants to create a Java Persistence query that returns valid U.S.phone numbers (formatted as "123-456-7890" or "800-RUN-EJB3") from a collection of differently formatted international…

The correct answer is E. WHERE addr. phoneLIKE 303-___-____'. See the full explanation below for the reasoning.

Question

A developer wants to create a Java Persistence query that returns valid U.S.phone numbers (formatted as "123-456-7890" or "800-RUN-EJB3") from a collection of differently formatted international phone numbers. The developer needs only those numbers that begin with 303. Which WHERE clause is correct?

Options

  • AWHERE addr. phone LIKE 303J
  • BWHERE addr. phone LIKE 303%'
  • CWHERE addr. phone LIKE303--'
  • DWHERE addr.phone LIKE 303-%-%'
  • EWHERE addr. phoneLIKE 303-_-__'
  • FWHERE addr. phone LIKE 303-%%%-%%%%'

How the community answered

(36 responses)
  • B
    3% (1)
  • C
    8% (3)
  • D
    6% (2)
  • E
    83% (30)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice