Open source · Apache 2.0
SQL that speaks nested data.
PartiQL is an expressive, SQL-compatible query language giving access to relational,
semi-structured, and nested data — wherever it lives.
Maintained by Amazon. Developed by open-source contributors.
query.partiql
-- Unnest each employee's projects, just like a join
SELECT e.name, p.name AS project
FROM hr.employeesNest AS e,
e.projects AS p
WHERE p.name LIKE '%security%'
Result
<<
{ 'name': 'Bob Smith', 'project': 'AWS Redshift security' },
{ 'name': 'Bob Smith', 'project': 'AWS Aurora security' },
{ 'name': 'Jane Smith', 'project': 'AWS Redshift security' }
>>