Home » MYSQL » Mysql miscellaneous » Question
  1. What will be the output of the following query?
    SELECT accountid, productid, custid
    FROM account
    WHERE productid IN (‘sav’, ‘chd’, ‘mm’);
    1. Only those values are selected whose productid is either ‘sav’’
    2. Only those values are selected whose productid is either ‘sav’, ‘chd’
    3. Only those values are selected whose productid is either ‘sav’, ‘chd’, ‘mm’
    4. All of above
    5. None of these
Correct Option: C

“IN” operator is used to combine the expressions.



Your comments will be displayed only after manual approval.