Created
December 14, 2020 06:25
-
-
Save nfarah86/fd4bf950877a33ec50347737b20b1443 to your computer and use it in GitHub Desktop.
Finds customer's history via parameters for email and full name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Select | |
full_name, | |
created_at, | |
active, | |
email, | |
last_updated, | |
customer_id | |
from | |
customer_orders | |
WHERE | |
email LIKE CONCAT('%', :email, '%') | |
AND full_name LIKE CONCAT('%', :name, '%') | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment