I am trying to find the SQL equivalent of hash in bigquery.
SQL :
SELECT CAST(HASHBYTES('SHA2_256', CONCAT(
COL1, COL2, COL3
)) AS BINARY(32)) AS HashValue
Big Query:
SELECT SHA2_256(CONCAT(COL1, '', COL2 )) AS HashValue.
I can't find any examples where hashing is done on multiple columns. The datatype of the columns are different as well.
Any help is really appreciated.