Use SEARCH with unstructured data
If you only need to find specific values within unstructured data, then you don't need to go through the work of un-nesting your data. You can search inside unstructured data using the SEARCH
function from BigQuery.
This exercise is part of the course
Introduction to BigQuery
Exercise instructions
- Finish the query to run the
SEARCH
function to look for a value containing'0da9ffd92214425d880de3f94e74ce39'
in theorder_items
column in theecommerce.ecomm_orders
table.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
-- Finish the query to search across the unstructured data
SELECT
-- Complete the SEARCH function
___(___, ___) as results
-- Add the correct table name
FROM ___
LIMIT 5