Home »
MCQs »
MariaDB MCQs
Which is the correct MariaDB query to get the list of products starting with a vowel?
38. Which is the correct MariaDB query to get the list of products starting with a vowel?
- SELECT product_name FROM products WHERE product_name REGEXP '^[aeiou]';
- SELECT product_name FROM products WHERE product_name REGEXP '^aeiou';
- SELECT product_name FROM products WHERE product_name REGEXP '*[aeiou]*';
- None of the above
Answer: A) SELECT product_name FROM products WHERE product_name REGEXP '^[aeiou]';
Explanation:
The correct MariaDB query to get the list of products starting with a vowel is:
Syntax:
SELECT product_name FROM products WHERE product_name REGEXP '^[aeiou]';