I have a crate db table with records like the one below:
{
"businessareaname": "test",
"profile": {
"phone": "",
"fullname": "",
"email": "abe-10@spatially.com"
}
}
I've tried querying with:
select *
from myTable
where profile['email'] = 'abe-10@spatially.com';
but nothing get's returned. How can I pull records based on an email value that is in an object?
This isn't a flat table so this is my best attempt at showing the table structure. The first row is the header and the next two rows are data.
business name | profile:
- phone
- fullname
- email
-------------------------------------
"test" | ""
""
"abe-10@spatially.com"
-------------------------------------
"other one" | "(415)884-9938"
"Abe Miessler"
"abe@test.com"