I'm using postgres to pull some data. I have an array (categories) and I want to exclude results that contain ' > '
select title, short_url, unnest(categories) as cats, winning_offer_amount
from auctions
where ended_at is not null
and '% > %' NOT IN cats
group by title, short_url, cats, winning_offer_amount
I realize my syntax is completely wrong but trying to give an idea of what I'm looking to write. A result might be:
Women's > Shoes
Women's
Men's > Shoes
Men's
I would want to exclude results with the ' > '
text[]calledcategoriesthat contains things like those four strings and you want to filter out the array entries that contain'>'? So you'd end up with an array likearray['Women''s', 'Men''s']?