How can I do this job?
SELECT * FROM item WHERE item_name LIKE '%' || (SELECT equipment_type FROM equipment_type GROUP BY equipment_type) || '%'
The inner subquery returns a list of rows, such as' '' test '' another '', and I want to select all the elements from the element table, where item_name is similar to the returned values ββof the subqueries. I need to have wild cards.
Is there an alternative where I can use wildcards but use the IN sql command instead?
source share