# US 2021/0279359 A1 · Data overlap count in a multiple tenant database system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0279359 A1
- Document ID: US20210279359A1
- Status: Published application
- Kind: A1
- Application number: 17/321,327
- Filed: 2021-05-14
- Published: 2021-09-09
- Earliest claimed: 2019-03-28
- Assignees: Snowflake Inc.
- Applicants: Snowflake Inc.
- Inventors: Justin Langseth; Matthew J. Glickman; Christian Kleinerman; Robert Muglia; Daniel Freundel; Thierry Cruanes; Allison Waingold Lee
- Web page: https://patentgrep.com/patent/US20210279359A1

## CPC

- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F 16/2456: {Join operations}
- G06F 16/256: {in federated or virtual databases}
- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems, methods, and devices for generating a secure join of database data are disclosed. A method includes creating a secure view of datapoints of a consumer account and processing, using a secure user defined function (UDF), the datapoints of the consumer account and datapoints of a provider account to generate a secure join key. The secure join key comprises a hash string of the datapoints of the provider account and the datapoints of the consumer account, and wherein the datapoints of the consumer account are processed via the secure view. The method further includes executing a consumer function to analyze the hash string of datapoints of the secure join key for common data points.

## Claims

### Claim 1

A method comprising:
creating a secure view of datapoints of a consumer account;
processing, using a secure user defined function (UDF), the datapoints of the consumer account and datapoints of a provider account to generate a secure join key, wherein the secure join key comprises a hash string of the datapoints of the provider account and the datapoints of the consumer account, and wherein the datapoints of the consumer account are processed via the secure view; and
executing, by a processor, a consumer function to analyze the hash string of datapoints of the secure join key.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
salting the datapoints of the consumer account.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
hashing each of the salted datapoints of the consumer account, wherein the hashed salted data points of the consumer account are provided to the secure UDF using the secure view.

### Claim 4 (depends on 1)

The method of claim 1, wherein the secure UDF is defined by the provider account, the sound account, a third party, or a database system administrator.

### Claim 5 (depends on 2)

The method of claim 2, wherein salting the datapoints of the consumer account comprises:
including with the salted datapoints, one or more additional salted datapoints that do not represent real datapoints of the consumer account.

### Claim 6 (depends on 5)

The method of claim 5, wherein the secure join key is based at least in part on the one or more salted datapoints received from the consumer account that do not represent the real datapoints of the consumer account.

### Claim 7 (depends on 1)

The method of claim 1, wherein analyzing the hash string of datapoints comprises at least one of:
identifying common datapoints between the provider account and the consumer account;
determining a number of common datapoints between the provider account and the consumer account; and
enriching the data stored in at least the provider account or the data stored in the consumer account based on common datapoints between the provider account and the consumer account.

### Claim 8 (depends on 7)

The method of claim 7, wherein identifying common datapoints between the provider account and the consumer account comprises:
comparing a provider hashed datapoint from the provider account with a consumer hashed datapoint from the consumer account, wherein the provider hashed datapoint and the consumer hashed datapoint are included in the hash string;
determining whether the provider hashed datapoint is the same as the consumer hashed datapoint; and
generating an indication that the provider account and the consumer account have a common datapoint in response to determining that the provider hashed datapoint and the consumer hashed datapoint are the same.

### Claim 9 (depends on 1)

The method of claim 1, wherein the secure UDF is executed by the consumer account and the provider account does not have visibility into whether the secure UDF was executed by the consumer account or not.

### Claim 10

A system comprising:
a memory; and
a processor operatively coupled to the memory, the processor to:
create a secure view of datapoints of a consumer account;
process, using a secure user defined function (UDF), the datapoints of the consumer account and datapoints of a provider account to generate a secure join key, wherein the secure join key comprises a hash string of the datapoints of the provider account and the datapoints of the consumer account, and wherein the datapoints of the consumer account are processed via the secure view; and
execute a consumer function to analyze the hash string of datapoints of the secure join key.

### Claim 11 (depends on 10)

The system of claim 10, where the processor is further to:
salt the datapoints of the consumer account.

### Claim 12 (depends on 11)

The system of claim 11, where the processor is further to:
hash each of the salted datapoints of the consumer account, wherein the hashed salted data points of the consumer account are provided to the secure UDF using the secure view.

### Claim 13 (depends on 10)

The system of claim 10, wherein the secure UDF is defined by the provider account, the sound account, a third party, or a database system administrator.

### Claim 14 (depends on 11)

The system of claim 11, wherein to salt the datapoints of the consumer account, the processor is to:
include with the salted datapoints, one or more additional salted datapoints that do not represent real datapoints of the consumer account.

### Claim 15 (depends on 14)

The system of claim 14, wherein the secure join key is based at least in part on the one or more salted datapoints received from the consumer account that do not represent the real datapoints of the consumer account.

### Claim 16 (depends on 10)

The system of claim 10, wherein to analyze the hash string of datapoints, the processor is to perform at least one of:
identify common datapoints between the provider account and the consumer account;
determine a number of common datapoints between the provider account and the consumer account; and
enrich the data stored in at least the provider account or the data stored in the consumer account based on common datapoints between the provider account and the consumer account.

### Claim 17 (depends on 16)

The system of claim 16, wherein to identify common datapoints between the provider account and the consumer account, the processor is to:
compare a provider hashed datapoint from the provider account with a consumer hashed datapoint from the consumer account, wherein the provider hashed datapoint and the consumer hashed datapoint are included in the hash string;
determine whether the provider hashed datapoint is the same as the consumer hashed datapoint; and
generate an indication that the provider account and the consumer account have a common datapoint in response to determining that the provider hashed datapoint and the consumer hashed datapoint are the same.

### Claim 18 (depends on 10)

The system of claim 10, wherein the secure UDF is executed by the consumer account and the provider account does not have visibility into whether the secure UDF was executed by the consumer account or not.

### Claim 19

A non-transitory computer-readable medium having instructions stored thereon which, when executed by a processor, cause the processor to:
create a secure view of datapoints of a consumer account;
process, using a secure user defined function (UDF), the datapoints of the consumer account and datapoints of a provider account to generate a secure join key, wherein the secure join key comprises a hash string of the datapoints of the provider account and the datapoints of the consumer account, and wherein the datapoints of the consumer account are processed via the secure view; and
execute, by the processor, a consumer function to analyze the hash string of datapoints of the secure join key.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, where the processor is further to:
salt the datapoints of the consumer account.

### Claim 21 (depends on 20)

The non-transitory computer-readable medium of claim 20, where the processor is further to:
hash each of the salted datapoints of the consumer account, wherein the hashed salted data points of the consumer account are provided to the secure UDF using the secure view.

### Claim 22 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the secure UDF is defined by the provider account, the sound account, a third party, or a database system administrator.

### Claim 23 (depends on 20)

The non-transitory computer-readable medium of claim 20, wherein to salt the datapoints of the consumer account, the processor is to:
include with the salted datapoints, one or more additional salted datapoints that do not represent real datapoints of the consumer account.

### Claim 24 (depends on 23)

The non-transitory computer-readable medium of claim 23, wherein the secure join key is based at least in part on the one or more salted datapoints received from the consumer account that do not represent the real datapoints of the consumer account.

### Claim 25 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein to analyze the hash string of datapoints, the processor is to perform at least one of:
identify common datapoints between the provider account and the consumer account;
determine a number of common datapoints between the provider account and the consumer account; and
enrich the data stored in at least the provider account or the data stored in the consumer account based on common datapoints between the provider account and the consumer account.

### Claim 26 (depends on 25)

The non-transitory computer-readable medium of claim 25, wherein to identify common datapoints between the provider account and the consumer account, the processor is to:
compare a provider hashed datapoint from the provider account with a consumer hashed datapoint from the consumer account, wherein the provider hashed datapoint and the consumer hashed datapoint are included in the hash string;
determine whether the provider hashed datapoint is the same as the consumer hashed datapoint; and
generate an indication that the provider account and the consumer account have a common datapoint in response to determining that the provider hashed datapoint and the consumer hashed datapoint are the same.

### Claim 27 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the secure UDF is executed by the consumer account and the provider account does not have visibility into whether the secure UDF was executed by the consumer account or not.
