id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/create-pipe_1_0.txt | CREATE PIPE ¶
snowpipe-intro) to load data from an ingestion queue into tables.
See also:
| |
snowflake_docs/percentile_disc_5_0.txt | Usage Notes ¶
* The ` _ percentile _ ` argument to the function must be a constant.
* DISTINCT is not supported for this function.
* The function ` PERCENTILE_CONT ` interpolates between the two closest values, while the function ` PERCENTILE_DISC ` chooses the closest value rather than interpolating.
... | |
snowflake_docs/system_revoke_stage_privatelink_access_5_0.txt | label-private-internal-stages-azure-configure-
endpoints) .
| |
snowflake_docs/alter-share_5_0.txt | Examples ¶
Add two accounts to the existing share named ` sales_s ` :
>
> ALTER SHARE sales_s ADD
> ACCOUNTS=<orgname.accountname1>,<orgname.accountname2>;
>
> +----------------------------------+
> | status |
> |----------------------------------|
> | Statement execu... | |
snowflake_docs/drop-index_1_0.txt | DROP INDEX ¶
Currently available only to accounts in select AWS regions, excluding trial
guide/tables-hybrid-limitations.html | |
snowflake_docs/show-alerts_0_0.txt | /
| |
snowflake_docs/login_history_1_0.txt | LOGIN_HISTORY View ¶
This Account Usage view can be used to query login attempts by Snowflake users
within the last 365 days (1 year).
Details about the error codes/messages for login attempts that were
unsuccessful can be found in the following documentation:
| |
snowflake_docs/account-usage_14_0.txt | READER_ACCOUNT_USAGE Schema SNOWFLAKE Database Roles ¶
notes/preview-features) — Open
Available to all accounts.
The READER_USAGE_VIEWER SNOWFLAKE database role is granted SELECT privilege on
all READER_ACCOUNT_USAGE views. As reader accounts are created by clients, the
READER_USAGE_VIEWER role is expected to be gra... | |
snowflake_docs/data-types-geospatial_20_0.txt | Using Geospatial Data with JavaScript UDFs ¶
JavaScript UDFs allow the GEOGRAPHY or GEOMETRY type as an argument and as a
return value.
If a JavaScript UDF has an argument of type GEOGRAPHY or GEOMETRY, that
argument will be visible as a JSON object in GeoJSON format inside the UDF
body.
If a JavaScript UDF returns ... | |
snowflake_docs/parameters_30_0.txt | DATA_RETENTION_TIME_IN_DAYS ¶
Type :
Object (for databases, schemas, and tables) — Can be set for Account »
Database » Schema » Table
Data Type :
Integer
Description :
Number of days for which Snowflake retains historical data for performing Time
Travel actions (SELECT, CLONE, UNDROP) on the object. A value of ` ... | |
snowflake_docs/schemata_3_0.txt | Usage Notes ¶
* Latency for the view may be up to 120 minutes (2 hours).
* The view only displays objects for which the current role for the session has been granted access privileges.
* The LAST_ALTERED column is updated when the following operations are performed on an object:
* DDL operations.
*... | |
snowflake_docs/access_history_7_0.txt | label-operators-subquery-exists) subquery clause are not
considered to be source columns.
| |
snowflake_docs/forecast_17_0.txt | Syntax ¶
The required arguments vary depending on what use case the model was trained
for.
**For single-series models without exogenous variables:**
<name>!FORECAST(
FORECASTING_PERIODS => <forecasting_periods>,
[ CONFIG_OBJECT => <config_object> ]
);
Copy
**For single-series models with exogenou... | |
snowflake_docs/pow_0_0.txt | /
1. Arithmetic
4. Rounding and Truncation
13. Exponent and Root
21. Logarithmic
24. Trigonometric
42. Other
numeric) POW
Categories:
| |
snowflake_docs/sha2_binary_6_0.txt | Examples ¶
SELECT sha2_binary('Snowflake', 384);
--------------------------------------------------------------------------------------------------+
SHA2_BINARY('SNOWFLAKE', 384) |
----------------------------------------------------... | |
snowflake_docs/array_contains_0_0.txt | /
1. JSON and XML Parsing
9. Array/Object Creation and Manipulation
43. Map Creation and Manipulation
51. Extraction
58. Conversion/Casting
82. Type Predicates
Categories:
semistructured) (Array/Object)
| |
snowflake_docs/system_clustering_information_4_0.txt | Usage Notes ¶
* The second argument of the function specifies a column name/expression or a number of errors. You cannot include both arguments in a single function call.
* The table name, column name, and expression are strings, and should be enclosed in single quotes.
| |
snowflake_docs/right_0_0.txt | /
1. General Manipulation
34. Case Conversion
38. Regular Expression Matching
48. Other Matching/Comparison
66. Compression/Decompression
70. Encoding/Decoding
81. Cryptographic/Checksum
93. Hash (Non-cryptographic)
96. Co... | |
snowflake_docs/min_3_0.txt | Returns ¶
The data type of the returned value is the same as the data type of the input
values.
| |
snowflake_docs/array_agg_10_0.txt | 000000521', 1067781.00),
> ( 80550, 'O', 'Clerk | |
snowflake_docs/create-compute-pool_5_0.txt | Optional parameters ¶
` AUTO_RESUME = { TRUE | FALSE } `
Specifies whether to automatically resume a compute pool when a service or job
is submitted to it.
* If AUTO_RESUME is FALSE, you need to explicitly resume the compute pool (using ALTER COMPUTE POOL RESUME) before you can start a service or job on the... | |
snowflake_docs/data-types-datetime_7_0.txt | TIMESTAMP_LTZ , TIMESTAMP_NTZ , TIMESTAMP_TZ ¶
Snowflake supports three variations of timestamp.
TIMESTAMP_LTZ :
TIMESTAMP_LTZ internally stores UTC time with a specified precision. However,
all operations are performed in the current session’s time zone, controlled by
Aliases for TIMESTAMP_LTZ:
* TIMESTAMPLTZ
... | |
snowflake_docs/array_construct_compact_5_0.txt | Returns ¶
The data type of the returned value is ` ARRAY ` .
| |
snowflake_docs/show-classes_0_0.txt | /
CLASSES
| |
snowflake_docs/truncate-materialized-view_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the materialized view to truncate. If the
identifier contains spaces or special characters, the entire string must be
enclosed in double quotes. Identifiers enclosed in double quotes are also
case-sensitive (e.g. ` "My Object" ` ).
If the materialized view id... | |
snowflake_docs/hll_5_0.txt | Usage Notes ¶
* ` DISTINCT ` can be included as an argument, but has no effect.
* When used as a window function:
> * This function does not support:
>
>> * ORDER BY sub-clause in the OVER() clause.
>>
>> * Window frames.
| |
snowflake_docs/grouping_2_0.txt | Syntax ¶
GROUPING( <expr1> [ , <expr2> , ... ] )
Copy
| |
snowflake_docs/drop-account_0_0.txt | /
1. Organization
7. Managed Accounts
11. Account Parameters & Functions
| |
snowflake_docs/create-failover-group_6_0.txt | label-replication-stored-procedures-udfs) .
>>
>> Note
>>
>> External access is not supported in the Gov region.
>>
>> NOTIFICATION INTEGRATIONS :
>>
>>
>> Specifies notification integrations.
>>
>> Only some types of notification integrations are replicated. For details,
intro.html | |
snowflake_docs/data-types-geospatial_9_0.txt | Supported Geospatial Object Types ¶
The GEOGRAPHY and GEOMETRY data types can store the following types of
geospatial objects:
* WKT / WKB / EWKT / EWKB / GeoJSON geospatial objects:
* Point
* MultiPoint
* LineString
* MultiLineString
* Polygon
* MultiPolygon
* GeometryCollection... | |
snowflake_docs/create-procedure_17_0.txt | Python ¶
` RUNTIME_VERSION = ' _ language_runtime_version _ ' `
The language runtime version to use. Currently, the supported versions are:
> * 3.8
>
> * 3.9
>
> * 3.10
>
> * 3.11
>
>
` PACKAGES = ( ' _ snowpark_package_name _ ' [, ' _ package_name _ '
...] ) `
A comma-separated list of the n... | |
snowflake_docs/qualify_0_0.txt | /
Categories:
| |
snowflake_docs/grant-application-role_5_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege or role
|
Object
|
Notes
---|---|---
ACCOUNTADMIN
|
Application role
|
guide/budgets.html | |
snowflake_docs/copy-files_3_0.txt | Syntax ¶
COPY FILES INTO @[<namespace>.]<stage_name>[/<path>/]
FROM @[<namespace>.]<stage_name>[/<path>/]
[ FILES = ( '<file_name>' [ , '<file_name>' ] [ , ... ] ) ]
[ PATTERN = '<regex_pattern>' ]
[ DETAILED_OUTPUT = { TRUE | FALSE } ]
Copy
| |
snowflake_docs/system_user_task_cancel_ongoing_executions_5_0.txt | Examples ¶
Abort the current run of a task with a case-insensitive name:
>
> SELECT
> SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS('mydb.myschema.mytask');
>
>
> Copy
Abort the current run of a task with a case-sensitive name:
>
> SELECT
> SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS('mydb.myschema."myTask"');... | |
snowflake_docs/truncate-table_4_0.txt | Usage Notes ¶
* The ` TABLE ` keyword is optional if the table name is fully qualified or a database and schema are currently in use for the session.
| |
snowflake_docs/show-roles_1_0.txt | SHOW ROLES ¶
Lists all the roles which you can view across your entire account, including
the system-defined roles and any custom roles that exist.
Important
Snowflake allows users to list roles; however, the ability to list roles is
not the same as using any role. Knowing the names of roles does not allow any
addit... | |
snowflake_docs/get_service_type_usage_9_0.txt | Error Messages ¶
The following scenarios can help you troubleshoot issues that can occur.
Error
|
001044 (42P13): SQL compilation error: error line 0 at position -1
Invalid argument types for function 'GET_SERVICE_TYPE_USAGE':
(VARCHAR(X), VARCHAR(X), VARCHAR(X), VARCHAR(X))
---|---
Cause
|
You called ... | |
snowflake_docs/system_external_table_pipe_status_3_0.txt | Arguments ¶
` _ external_table_name _ `
External table for which you want to retrieve the current automatic refresh
status.
| |
snowflake_docs/listing-auto-fulfillment-refresh-daily_5_0.txt | Examples ¶
Shows the sum of credits used to refresh the data associated with a specific
auto-fulfillment group, including the associated databases and listings:
SELECT
fulfillment_group_name,
databases,
listings,
SUM(credits_used) AS total_credits_used
FROM snowflake.data_sharing... | |
snowflake_docs/policy_references_0_0.txt | /
1. Data Loading
4. Data Generation
6. Data Conversion
9. ML-Powered Analysis
11. Object Modeling
13. Semi-Structured Queries
15. Query Results
17. Query Profile
19. User Login
22. Queries
26. Wareho... | |
snowflake_docs/system_pipe_force_resume_5_0.txt | Examples ¶
Force a pipe with a case-insensitive name to resume:
>
> SELECT SYSTEM$PIPE_FORCE_RESUME('mydb.myschema.mypipe');
>
>
> Copy
Force a pipe with a case-sensitive name to resume:
>
> SELECT SYSTEM$PIPE_FORCE_RESUME('mydb.myschema."myPipe"');
>
>
> Copy
Force a stale pipe to resume after its owner... | |
snowflake_docs/ternary-logic_1_0.txt | Ternary Logic ¶
As specified in the SQL standard, ternary logic, or three-valued logic (3VL),
is a logic system with three truth values: TRUE, FALSE, and UNKNOWN. In
Snowflake, UNKNOWN is represented by NULL. Ternary logic applies to the
evaluation of Boolean expressions, as well as predicates, and affects the
resul... | |
snowflake_docs/create-database-role_7_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
CREATE DATABASE ROLE
|
Database
|
A role with the OWNERSHIP privilege on the database can grant the CREATE
DATABASE ROLE privilege to another account role.
For instructions on creating a custom role with a specified set... | |
snowflake_docs/approx_percentile_estimate_1_0.txt | APPROX_PERCENTILE_ESTIMATE ¶
Returns the desired approximated percentile value for the specified t-Digest
state.
A t-Digest state produced by [ APPROX_PERCENTILE_ACCUMULATE
using this function.
As such, APPROX_PERCENTILE_ESTIMATE(APPROX_PERCENTILE_ACCUMULATE(…)) is
equivalent to APPROX_PERCENTILE(…).
See also:
| |
snowflake_docs/abs_3_0.txt | Examples ¶
SELECT column1, abs(column1)
FROM (values (0), (1), (-2), (3.5), (-4.5), (null));
+---------+--------------+
| COLUMN1 | ABS(COLUMN1) |
|---------+--------------|
| 0.0 | 0.0 |
| 1.0 | 1.0 |
| -2.0 | 2.0 |
| 3.5 | 3... | |
snowflake_docs/alter-file-format_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the file format to alter. If the identifier
contains spaces or special characters, the entire string must be enclosed in
double quotes. Identifiers enclosed in double quotes are also case-sensitive.
` RENAME TO _ new_name _ `
Specifies the new identifier for... | |
snowflake_docs/conditional_change_event_0_0.txt | /
1. General
27. Rank-Related
39. Bitwise Aggregation
43. Boolean Aggregation
47. Hash Aggregation
49. Semi-structured Aggregation
52. Counting Distinct Values
55. Linear Regression
65. Statistics and Probability
... | |
snowflake_docs/system_wait_2_0.txt | Syntax ¶
SYSTEM$WAIT( amount [ , time_unit ] )
Copy
| |
snowflake_docs/set_notification_mute_flag_7_0.txt | Examples ¶
Disable email notifications for budget ` my_budget ` in schema `
budget_db.budget_schema ` :
CALL budget_db.budget_schema.my_budget!SET_NOTIFICATION_MUTE_FLAG(TRUE);
Copy
Enable email notifications for the account budget:
CALL snowflake.local.account_root_budget!SET_NOTIFICATION_MUTE_FLAG(FALSE)... | |
snowflake_docs/transactions_19_0.txt | Resource Locking ¶
Transactional operations acquire locks on a resource, such as a table, while
that resource is being modified. Locks block other statements from modifying
the resource until the lock is released.
The following guidelines apply in most situations:
* COMMIT operations (including both AUTOCOMMIT and... | |
snowflake_docs/alter-session-policy_4_0.txt | Parameters ¶
` _ name _ `
Identifier for the session policy; must be unique for your account.
The identifier value must start with an alphabetic character and cannot
contain spaces or special characters unless the entire identifier string is
enclosed in double quotes (e.g. ` "My object" ` ). Identifiers enclosed ... | |
snowflake_docs/desc-file-format_4_0.txt | Usage Notes ¶
| |
snowflake_docs/show-tags_4_0.txt | Access control requirements ¶
access-control-overview-roles) used to execute this SQL command must have at
control-overview.html | |
snowflake_docs/create-versioned-schema_5_0.txt | label-granting-future-privs-on-schema-objects) , on objects in
the schema. Object owners retain the OWNERSHIP privileges on the objects,
however, only the schema owner can manage privilege grants on the objects.
` DATA_RETENTION_TIME_IN_DAYS = _ integer _ `
Specifies the number of days for which Time Travel actions ... | |
snowflake_docs/drop_2_0.txt | Syntax ¶
DROP <object_type> [ IF EXISTS ] <identifier> [ CASCADE | RESTRICT ]
Copy
For specific syntax, usage notes, and examples, see:
**Organization Objects:**
**Account Objects:**
**Database Objects:**
**Classes:**
| |
snowflake_docs/desc-aggregation-policy_8_0.txt | label-access-control-securable-objects) , see [ Overview of
For additional details on aggregation policy DDL and privileges, see [
aggregation-policy-manage) .
| |
snowflake_docs/like_6_0.txt | Collation Details ¶
Only the ` upper ` , ` lower ` , and ` trim ` collation specifications are
supported. Combinations with ` upper ` , ` lower ` , and ` trim ` are also
supported (for example, ` upper-trim ` and ` lower-trim ` ), except for
locale combinations (for example, ` en-upper ` ).
Note
To use this... | |
snowflake_docs/delete_category_1_0.txt | ` _ custom_classifier _ ` !DELETE_CATEGORY ¶
Available to all Snowflake accounts that are [ Enterprise Edition
Custom Classification requires Enterprise Edition (or higher). To inquire
about upgrading, please contact [ Snowflake Support
Snowflake-Lodge) .
See also:
custom.html | |
snowflake_docs/regexp_instr_5_0.txt | Usage Notes ¶
* Positions are 1-based, not 0-based. For example, the position of the letter “M” in “MAN” is 1, not 0.
| |
snowflake_docs/drop-index_0_0.txt | /
2. Table
13. Dynamic Table
19. Event Table
24. External Table
30. Hybrid Table
36. Iceberg Table
43. View
49. Materialized View
56. Sequence
DROP INDEX
| |
snowflake_docs/event_tables_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
TABLE_CATALOG
|
TEXT
|
Database that the event table belongs to
TABLE_SCHEMA
|
TEXT
|
Schema that the event table belongs to
TABLE_NAME
|
TEXT
|
Name of the event table
TABLE_OWNER
|
TEXT
|
Name of the role that owns the event table
CREATED
|
TI... | |
snowflake_docs/get_notification_integration_name_2_0.txt | Syntax ¶
<budget_name>!GET_NOTIFICATION_INTEGRATION_NAME()
Copy
| |
snowflake_docs/alter-database-role_0_0.txt | /
1. User Management
7. Database Role Management
16. Account-level Role Management
25. Privilege Management
ALTER DATABASE ROLE
| |
snowflake_docs/drop-image-repository_2_0.txt | Syntax ¶
DROP IMAGE REPOSITORY [ IF EXISTS ] <name>
Copy
| |
snowflake_docs/drop-pipe_1_0.txt | DROP PIPE ¶
Removes the specified pipe from the current/specified schema.
See also:
| |
snowflake_docs/create-network-policy_9_0.txt | Usage notes ¶
* You cannot execute a CREATE OR REPLACE NETWORK POLICY command to replace an existing network policy if that policy is currently assigned to an account, security integration, or user.
* Each ` _ ip_address _ ` can cover a range of addresses using Classless Inter-Domain Routing (CIDR) notation:
... | |
snowflake_docs/expressions-byte-bit_0_0.txt | /
| |
snowflake_docs/st_area_4_0.txt | Arguments ¶
` _ geography_or_geometry_expression _ `
The argument must be of type GEOGRAPHY or GEOMETRY.
| |
snowflake_docs/object_keys_1_0.txt | OBJECT_KEYS ¶
Returns an array containing the list of keys in the top-most level of the
input object.
| |
snowflake_docs/index_columns_0_0.txt | /
| |
snowflake_docs/date-time-examples_11_0.txt | Incrementing Date and Time Values ¶
Add two years to the current date:
SELECT DATEADD(year, 2, current_date());
Copy
Add two days to the current date:
SELECT DATEADD(day,2,current_date());
Copy
Add two hours to the current date and time:
SELECT DATEADD(hour,2,current_timestamp());
Copy
Add two minutes to... | |
snowflake_docs/st_asewkt_7_0.txt | GEOGRAPHY Examples ¶
The following example demonstrates the ST_ASEWKT function:
>
> create table geospatial_table (id INTEGER, g GEOGRAPHY);
> insert into geospatial_table values
> (1, 'POINT(-122.35 37.55)'), (2, 'LINESTRING(-124.20 42.00, -120.01
> 41.99)');
>
>
> Copy
>
>
> select st_ase... | |
snowflake_docs/alter-storage-integration_3_0.txt | Parameters ¶
` _ name _ `
Identifier for the integration to alter. If the identifier contains spaces or
special characters, the entire string must be enclosed in double quotes.
Identifiers enclosed in double quotes are also case-sensitive.
` SET ... `
Specifies one or more properties/parameters to set for the tab... | |
snowflake_docs/get_notification_mute_flag_1_0.txt | <budget_name>!GET_NOTIFICATION_MUTE_FLAG ¶
guide/intro-editions) .
This feature is currently not available for [ Trial Accounts
View the status of the notification mute flag for a [ budget
notification emails are sent about the budget’s spending limit.
See also:
<budget_name>!GET_NOTIFICATION_INTEGRATION_NAME
| |
snowflake_docs/strtok_split_to_table_1_0.txt | STRTOK_SPLIT_TO_TABLE ¶
Tokenizes a string with the given set of delimiters and flattens the results
into rows.
See also:
| |
snowflake_docs/system_stream_backlog_3_0.txt | Syntax ¶
SYSTEM$STREAM_BACKLOG('<stream_name>')
Copy
| |
snowflake_docs/st_difference_5_0.txt | Usage Notes ¶
* If any vertex of one input object is on the boundary of the other input object (excluding the vertices), the output might not be accurate.
* The function is not guaranteed to produce normalized and/or minimal results. For example, an output could consist of a LineString containing several Points... | |
snowflake_docs/xmlget_7_0.txt | Usage Notes ¶
* To extract attribute values, use ` GET(tag, '@attrname') ` .
* To extract the content, use ` GET(tag, '$') ` .
* To extract the tag name, use ` GET(tag, '@') ` .
* You can extract nested tags by nesting XMLGET() calls, e.g.:
select xmlget(xmlget(my_xml_column, 'my_tag'... | |
snowflake_docs/alter-function_3_0.txt | User-Defined and External Functions ¶
ALTER FUNCTION [ IF EXISTS ] <name> ( [ <arg_data_type> , ... ] ) RENAME TO <new_name>
ALTER FUNCTION [ IF EXISTS ] <name> ( [ <arg_data_type> , ... ] ) SET LOG_LEVEL = '<log_level>'
ALTER FUNCTION [ IF EXISTS ] <name> ( [ <arg_data_type> , ... ] ) SET TRACE_LEVEL = ... | |
snowflake_docs/create-file-format_6_0.txt | TYPE = CSV ¶
` COMPRESSION = AUTO | GZIP | BZ2 | BROTLI | ZSTD | DEFLATE |
RAW_DEFLATE | NONE `
Use :
Data loading, data unloading, and external tables
Definition :
* When loading data, specifies the current compression algorithm for the data file. Snowflake uses this option to detect how an alr... | |
snowflake_docs/show-hybrid-tables_0_0.txt | /
2. Table
13. Dynamic Table
19. Event Table
24. External Table
30. Hybrid Table
36. Iceberg Table
43. View
49. Materialized View
56. Sequence
SHOW HYBRID TABLES
| |
snowflake_docs/drop-service_0_0.txt | /
1. IMAGE REGISTRY AND REPOSITORY
5. COMPUTE POOL
11. SERVICE
18. JOB
container-services) DROP SERVICE
| |
snowflake_docs/system_get_login_failure_details_4_0.txt | Returns ¶
Returns the following elements in a JSON object:
Key
|
Data Type
|
Value Description
---|---|---
clientIP
|
STRING
|
The IP address from where the failed login request originated. For example, `
"10.211.55.1" ` .
clientType
|
STRING
|
The client software reported by the client. For example, ` "JDBC_... | |
snowflake_docs/masking_policies_0_0.txt | /
Schema:
| |
snowflake_docs/desc-external-table_5_0.txt | Examples ¶
Create an example external table:
>
> CREATE EXTERNAL TABLE emp ( ... );
>
>
> Copy
Describe the columns in the table:
>
> DESC EXTERNAL TABLE emp;
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Usage notes
4. Examples ... | |
snowflake_docs/st_dwithin_1_0.txt | ST_DWITHIN ¶
Returns TRUE if the minimum geodesic distance between two points (two [
objects) is within the specified distance. Otherwise, returns FALSE.
If the parameters are GEOGRAPHY values that are not points (e.g. lines or
polygons), this returns TRUE or FALSE based on the minimum geodesic distance
between the ... | |
snowflake_docs/drop-masking-policy_6_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/create-session-policy_1_0.txt | CREATE SESSION POLICY ¶
Session policies requires Enterprise Edition or higher. To inquire about
upgrading, please contact [ Snowflake Support
Snowflake-Lodge) .
Creates a new session policy or replaces an existing session policy.
A session policy defines the idle session timeout period in minutes.
Administrators ca... | |
snowflake_docs/is_object_4_0.txt | Usage Notes ¶
| |
snowflake_docs/sinh_3_0.txt | Arguments ¶
` _ real_expr _ `
This expression should evaluate to a real number.
| |
snowflake_docs/regr_avgx_2_0.txt | Syntax ¶
**Aggregate function**
REGR_AVGX(y, x)
Copy
**Window function**
REGR_AVGX(y, x) OVER ( [ PARTITION BY <expr3> ] )
Copy
| |
snowflake_docs/group-by-grouping-sets_1_0.txt | GROUP BY GROUPING SETS ¶
clause that computes multiple group-by clauses in a single statement. The
group set is a set of dimension columns.
GROUP BY GROUPING SETS is equivalent to the ` UNION ` of two or more [ GROUP
* ` GROUP BY GROUPING SETS(a) ` is equivalent to the single grouping set operation ` GROUP B... | |
snowflake_docs/is-null_4_0.txt | Examples ¶
Create and load the table:
>
> CREATE OR REPLACE TABLE i (id NUMBER, col1 NUMBER, col2 NUMBER);
> INSERT INTO i (id, col1, col2) VALUES
> (1, 0, 5),
> (2, 0, null),
> (3, null, 5),
> (4, null, null);
>
>
> Copy
Show the data:
>
> SELECT *
> FROM i
> ... | |
snowflake_docs/continue_5_0.txt | Examples ¶
The following loop iterates 3 times. Because the code after the ` CONTINUE `
statement is not executed, the variable named ` counter2 ` will be 0 rather
than 3.
>
> DECLARE
> counter1 NUMBER(8, 0);
> counter2 NUMBER(8, 0);
> BEGIN
> counter1 := 0;
> counter2 := 0;
> ... | |
snowflake_docs/listing-access-history_6_0.txt | ,
"columnName": "column2_name"
}
],
"objectDomain":"VIEW",
"objectId": | |
snowflake_docs/system_authorize_privatelink_4_0.txt | Usage notes ¶
* Only account administrators (i.e. users with the ACCOUNTADMIN role) can execute this function.
* This function can be used with Snowflake accounts on AWS or Azure; Google Cloud Platform (GCP) is not currently supported.
| |
snowflake_docs/to_char_8_0.txt | < | > 3,987.0< | >3.987E3< | >3987.000< | >0F93< | >+0F93< |
| 1.111 | > $1.1< | > 1.1< | >1.111E0< | >1.111< | >0001< | >+0001< |
+------------+----------+------------+-------------+------------+--------+---------+
Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
... | |
snowflake_docs/data-types-text_13_0.txt | Single-Quoted String Constants ¶
A string constant can be enclosed between single quote delimiters (e.g. `
'This is a string' ` ). To include a single quote character within a
string constant, type two adjacent single quotes (e.g. ` '' ` ).
For example:
>
> SELECT 'Today''s sales projections', '-''''-';
> ... | |
snowflake_docs/approximate_jaccard_index_1_0.txt | APPROXIMATE_JACCARD_INDEX ¶
Returns an estimation of the similarity (Jaccard index) of inputs based on
their MinHash states. For more information about Jaccard indexes and the
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.