SQLSQL
#6

Wildcard String Filtering Using LIKE and ILIKE in SQL

Easy
Interview Question #6

Given a `products` table, find all products whose title contains 'Wireless' and whose SKU ends with '-PRO'. Return `product_id`, `title`, and `sku`.

Input Table: products
3 rows preview
product_idtitleskuprice
1Wireless Bluetooth HeadsetAUD-101-PRO2499
2Wired Gaming MouseACC-202-PRO1299
3Wireless Ergonomic MouseACC-303-STD1899
Expected Output Structure1 rows
product_idtitlesku
1Wireless Bluetooth HeadsetAUD-101-PRO
Interview Context

Asked frequently in data analyst and business analyst technical rounds. Focus on clean filtering, optimal indexing usage, and unambiguous column selection.

SQLPostgreSQL 15
Ready to execute

Click "Run Query" or press Ctrl + Enter to test your query.

Output will be verified against the test dataset.

Chat with us