Created
August 17, 2018 22:31
-
-
Save raulingg/419276e4bc4c5f0d99f7f8e1e00fc505 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
id, name | |
from | |
courses | |
where | |
name like "%Gabriel%" | |
or (JSON_EXTRACT(lessons, "$[*].name") like "%Gabriel%") | |
or (JSON_EXTRACT(lessons, "$[*].subjects[*].name") like "%Gabriel%"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment