CBSE Class 12 Computer Science Question 14 of 44

Solved 2025 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 14

Back to all questions
14
Question

Question 14

What will be the output of the query ?

SELECT * FROM products WHERE product_name LIKE 'App%';
  1. Details of all products whose names start with 'App'
  2. Details of all products whose names end with 'App'
  3. Names of all products whose names start with 'App'
  4. Names of all products whose names end with 'App'
Answer

Details of all products whose names start with 'App'

Reason — The SELECT * statement indicates that every column of data should be returned for each matching record. It uses the LIKE operator with the pattern 'App%', where the % wildcard represents any sequence of characters. Therefore, this query will return details of all products from the products table where the product_name starts with 'App', including any characters that may follow.