MySQL Forums
Forum List  »  Newbie

Search within a search.
Posted by: Mark Tank
Date: July 31, 2020 03:40PM

I am wondering how I can search within a search. I want to search all records with either a first name or last name within the records that have a status of 22. What I am getting is records with the name and with the status.

WHERE `orders`.`first_name` LIKE '%stock%' OR `Customers`.`first_name` LIKE '%stock%' AND `orders`.`status` = 22

Options: ReplyQuote


Subject
Written By
Posted
Search within a search.
July 31, 2020 03:40PM
July 31, 2020 04:35PM
August 01, 2020 10:54AM
August 03, 2020 05:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.