What result set is returned from the following SQL query ? Select customer_name, telephone
What result set is returned from the following SQL query ?
Select customer_name, telephone
From customers
Where city in ('Jaipur','Delhi','Agra');
Show answerHide answer
Correct answer: (C) The customer_name and telephone of all customers living in either Jaipur, Delhi or Agra.
Explanation
IN matches any value in the list, so the query returns customer_name and telephone of customers whose city is Jaipur, Delhi or Agra. A customer cannot live in all three cities at once.