Home » MYSQL » Mysql miscellaneous » Question
  1. Find the error in the following query?
    SELECT custid, fedid
    FROM customer
    WHERE custid = ’I’
    AND fedid BETWEEN 6000-00-000 AND 8888-888-000;
    1. No
    2. Range too high to compare
    3. Yes
    4. All of above
    5. None of these
Correct Option: A

In the following query, there will be no error in executing as 6000-00-000 AND 8888-888-000 is “string ranges”.



Your comments will be displayed only after manual approval.