What result set is returned from the following SQL query ? Select…

2017

What result set is returned from the following SQL query ? Select customer_name, telephone From customers Where city in ('Jaipur', 'Delhi', 'Agra');

Answer: C. The customer_name and telephone of all customers living in either Jaipur, Delhi or Agra.The SQL condition selects only those records where the city is any one of Jaipur, Delhi, or Agra. The query returns customer_name and telephone of customers…

  1. A.

    The customer_name of all customers who are not living in Jaipur, Delhi or Agra.

  2. B.

    The customer_name and telephone of all customers.

  3. C.

    The customer_name and telephone of all customers living in either Jaipur, Delhi or Agra.

  4. D.

    The customer_name and telephone of all customers living in Jaipur, Delhi and Agra.

Attempted by 946 students.

Show answer & explanation

Correct answer: C

The SQL condition selects only those records where the city is any one of Jaipur, Delhi, or Agra. The query returns customer_name and telephone of customers living in either of these cities.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…