nerdexam
Oracle

1Z0-082 · Question #64

Examine the description of the CUSTOMERS table: You want to display details of all customers who reside in cities starting with the letter D followed by at least two characters. Which query can be…

The correct answer is A. SELECT * FROM customers WHERE city LIKE `D_%'. See the full explanation below for the reasoning.

SQL and PL/SQL

Question

Examine the description of the CUSTOMERS table:

You want to display details of all customers who reside in cities starting with the letter D followed by at least two characters. Which query can be used?

Exhibit

1Z0-082 question #64 exhibit

Options

  • ASELECT * FROM customers WHERE city LIKE `D_%';
  • BSELECT * FROM customers WHERE city = `%D_';
  • CSELECT * FROM customers WHERE city LIKE `D_';
  • DSELECT * FROM customers WHERE city = `D_%';

How the community answered

(67 responses)
  • A
    78% (52)
  • B
    3% (2)
  • C
    6% (4)
  • D
    13% (9)

Topics

#LIKE operator#wildcard characters#pattern matching#WHERE clause

Community Discussion

No community discussion yet for this question.

Full 1Z0-082 Practice