SQLite
SQLite Query Structure
SELECT
id,
data
FROM [default/customers] AS cus
INNER JOIN [default/orders] AS ord
ON ord.customer_id = cus.id
WHERE (
@search IS NULL OR @search = ''
OR json_extract(cus.data, '$.name') LIKE '%' || @search || '%'
OR json_extract(cus.data, '$.email') LIKE '%' || @search || '%'
)
AND json_extract(cus.data, '$.active') = 1
AND json_extract(ord.data, '$.status') = @status
ORDER BY
json_extract(cus.data, '$.lastName'),
json_extract(cus.data, '$.firstName')
LIMIT 100Key Elements:
Element
Description
Common Variations
Basic List
Singleton
Aggregation
JSON Property Access
Standard Pattern (Recommended)
Shred (Special cases only)
CTEs
SDK Integration
Quick Patterns
Considerations
Last updated
Was this helpful?