Instruire
Modul
Use built-in functions and GROUP BY in Transact-SQL - Training
Use built-in functions and GROUP BY in 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ă.
bit_xor
aggregate functionApplies to: Databricks SQL
Databricks Runtime
Returns the bitwise XOR
of all input values in the group.
bit_xor ( [ALL | DISTINCT] expr ) [FILTER ( WHERE cond ) ]
This function can also be invoked as a window function using the OVER
clause.
expr
: An expression that evaluates to an integral numeric.cond
: An optional boolean expression filtering the rows used for aggregation.The result type matches the argument type.
If DISTINCT
is specified the aggregate operates only on distinct values.
> SELECT bit_xor(col) FROM VALUES (3), (3), (5) AS tab(col);
5
> SELECT bit_xor(DISTINCT col) FROM VALUES (3), (3), (5) AS tab(col);
6
Instruire
Modul
Use built-in functions and GROUP BY in Transact-SQL - Training
Use built-in functions and GROUP BY in Transact-SQL
Documentație
BOOLEAN type - Azure Databricks - Databricks SQL
Learn about the Boolean types in Databricks Runtime and Databricks SQL. Boolean types represent Boolean values. Understand the syntax and limits with examples.