Instruire
Modul
Combine query results with set operators - Training
Combine query results with set operators using Transact-SQL.
Acest browser nu mai este acceptat.
Faceți upgrade la Microsoft Edge pentru a profita de cele mai noi funcții, actualizări de securitate și asistență tehnică.
array_intersect
functionApplies to: Databricks SQL
Databricks Runtime
Returns an array of the elements in the intersection of array1
and array2
.
array_intersect(array1, array2)
array1
: An ARRAY of any type with comparable elements.array2
: n ARRAY of elements sharing a least common type with the elements of array1
.An ARRAY of matching type to array1
with no duplicates and elements contained in both array1
and array2
.
> SELECT array_intersect(array(1, 2, 3), array(1, 3, 3, 5));
[1,3]
Instruire
Modul
Combine query results with set operators - Training
Combine query results with set operators using Transact-SQL.
Documentație
array_distinct function - Azure Databricks - Databricks SQL
Learn the syntax of the array\_distinct function of the SQL language in Databricks SQL and Databricks Runtime.
array_compact function - Azure Databricks - Databricks SQL
Learn the syntax of the array\_distinct function of the SQL language in Databricks SQL and Databricks Runtime.
arrays_zip function - Azure Databricks - Databricks SQL
Learn the syntax of the arrays\_zip function of the SQL language in Databricks SQL and Databricks Runtime.