I have a biographical data table, and I need to make a request that selects people who have the word "died" in their biography and whose death date is NULL. This does not work:
SELECT * FROM people WHERE bio LIKE '%died%' AND death_date IS NULL
This selects everyone whose death_date is NULL, but also selects people who do not have the word "died" in their biography. Can I do this in one request?
null mysql select sql-like where
kirkaracha
source share