id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/add_months_0_0.txt | /
1. Construction
5. Extraction
29. Addition & Subtraction
38. Truncation
42. Conversion
57. Time Zone
59. Alerts
date-time) ADD_MONTHS
Categories:
| |
snowflake_docs/constraints-alter_2_0.txt | Renaming a Constraint ¶
rename a constraint:
ALTER TABLE <table_name> RENAME CONSTRAINT <old_name> TO <new_name>;
Copy
| |
snowflake_docs/data-types-numeric_6_0.txt | Impact of Precision and Scale on Storage Size ¶
Precision (total number of digits) does not impact storage. In other words,
the storage requirements for the same number in columns with different
precisions, such as ` NUMBER(2,0) ` and ` NUMBER(38,0) ` , are the same. For
each micro-partition, Snowflake determines ... | |
snowflake_docs/split_part_5_0.txt | Collation Details ¶
specification) of all input arguments must be compatible.
This function does not support the following collation specifications:
* ` pi ` (punctuation-insensitive).
* ` cs-ai ` (case-sensitive, accent-insensitive).
Note
To use this function with a column that has the ` upper ` or ` lower... | |
snowflake_docs/show-connections_5_0.txt | Output ¶
The command output provides connection properties and metadata in the
following columns. The command output for organizations that span multiple [
groups) includes an additional ` region_group ` column.
Column
|
Description
---|---
` region_group `
|
groups) where the account is located. **Note** : Th... | |
snowflake_docs/system_set_span_attributes_3_0.txt | Arguments ¶
` ' _ object _ ' `
An object containing name-value pairs representing the attributes to add.
| |
snowflake_docs/st_y_1_0.txt | ST_Y ¶
Returns the latitude (Y coordinate) of a Point represented by a [ GEOGRAPHY
| |
snowflake_docs/system_query_reference_4_0.txt | label-reference-object-
scope) .
Default value: ` FALSE `
| |
snowflake_docs/date-time-input-output_21_0.txt | Date & Time Functions ¶
Snowflake provides a set of functions to construct, convert, extract, or
modify DATE/TIME/TIMESTAMP data. For more information, see [ Date & Time
| |
snowflake_docs/show-schemas_0_0.txt | /
1. Database
9. Schema
17. Share
database) SHOW SCHEMAS
| |
snowflake_docs/functions-geospatial_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
| |
snowflake_docs/array_append_2_0.txt | Syntax ¶
ARRAY_APPEND( <array> , <new_element> )
Copy
| |
snowflake_docs/alter-failover-group_4_0.txt | Parameters ¶
**Source Account**
` _ name _ `
Specifies the identifier for the failover group.
` RENAME TO _ new_name _ `
` _ new_name _ `
Specifies the new identifier for the failover group. The new identifier cannot
be used if the identifier is already in place for a different replication or
failover group.
` ... | |
snowflake_docs/map_contains_key_4_0.txt | Returns ¶
* Returns TRUE if the specified map contains the specified key.
* Returns FALSE if the specified map does not contain the specified key.
| |
snowflake_docs/alter-table_4_0.txt | Clustering Actions ( ` clusteringAction ` ) ¶
` CLUSTER BY ( _ expr _ [ , _ expr _ , ... ] ) `
Specifies (or modifies) one or more table columns or column expressions as the
clustering key for the table. These are the columns/expressions for which
clustering is maintained by Automatic Clustering.
Importa... | |
snowflake_docs/desc-network-rule_10_0.txt | Example ¶
Describe a network rule named ` myrule ` :
>
> DESC NETWORK RULE myrule;
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Output
4. Access control requirements
5. Usage notes
6. Example
Language : **English** | |
snowflake_docs/create-alert_14_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/system_unblock_internal_stages_public_access_0_0.txt | /
1. Control
29. Information
90. Query Information
SYSTEM$UNBLOCK_INTERNAL_STAGES_PUBLIC_ACCESS
Categories:
| |
snowflake_docs/commands-function_1_0.txt | Functions, Procedures, and Snowflake Scripting Commands ¶
Functions, procedures, and Snowflake Scripting commands enable you to manage
your user-defined functions (UDFs), external functions, stored procedures, and
Snowflake Scripting scripts.
| |
snowflake_docs/as_double-real_1_0.txt | AS_DOUBLE , AS_REAL ¶
Casts a VARIANT value to a floating-point value.
AS_REAL is a synonym for AS_DOUBLE.
See also:
| |
snowflake_docs/system_add_event_3_0.txt | Arguments ¶
` ' _ name _ ' `
The name of the event to add.
` ' _ object _ ' `
An object containing name-value pairs representing the attributes to add.
| |
snowflake_docs/data-types-text_2_0.txt | Data Types for Text Strings ¶
Snowflake supports the following data types for text (i.e. character) strings.
| |
snowflake_docs/create-session-policy_7_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
CREATE SESSION POLICY
|
Schema
|
Note that operating on any object in a schema also requires the USAGE
privilege on the parent database and schema.
For instructions on creating a custom role with a specified set of priv... | |
snowflake_docs/create-network-rule_8_0.txt | label-access-control-securable-objects) , see [ Overview of
| |
snowflake_docs/desc-compute-pool_8_0.txt | label-access-control-securable-objects) , see [ Overview of
| |
snowflake_docs/st_dimension_3_0.txt | Arguments ¶
` _ geography_or_geometry_expression _ `
The argument must be an expression of type GEOGRAPHY or GEOMETRY.
| |
snowflake_docs/current_warehouse_3_0.txt | Arguments ¶
None.
| |
snowflake_docs/forecast_16_0.txt | <name>!FORECAST ¶
Generates a forecast from the previously trained model ` _ name _ ` .
| |
snowflake_docs/count_3_0.txt | Arguments ¶
` _ expr1 _ `
This should be either:
* A column name, which can be a qualified name (e.g. database.schema.table.column_name).
* ` Alias.* ` , which indicates that the function should return the number of rows that do not contain any NULLs. See Examples for an example.
` _ expr2 _ `
You can inc... | |
snowflake_docs/sha1_binary_3_0.txt | Arguments ¶
` _ msg _ `
A string expression, the message to be hashed.
| |
snowflake_docs/array_intersection_4_0.txt | Returns ¶
This function returns an ` ARRAY ` that contains the elements of the input
arrays that match.
If no elements overlap, the function returns an empty array.
If one or both arguments are NULL, the function returns NULL.
The order of the values within the returned array is unspecified.
| |
snowflake_docs/array_agg_17_0.txt | 000000114"
> |
> | | ]
> |
> | F | [
> |
> | | "Clerk | |
snowflake_docs/data_transfer_daily_history_0_0.txt | /
24. Legacy Views
Schema:
| |
snowflake_docs/st_aswkt_6_0.txt | Examples ¶
| |
snowflake_docs/comment_4_0.txt | Examples ¶
Initially create a schema with a comment, then overwrite the comment:
>
> CREATE SCHEMA my_schema COMMENT='this is comment1';
>
> SHOW SCHEMAS LIKE '%schema%';
>
>
> +-------------------------------+--------------------+------------+------------+---------------+--------------+-----------------... | |
snowflake_docs/soundex_p123_6_0.txt | Examples ¶
The following example demonstrates the differences in the return values of the
>
> SELECT SOUNDEX('Pfister'),
> SOUNDEX_P123('Pfister'),
> SOUNDEX('LLoyd'),
> SOUNDEX_P123('Lloyd');
>
> +--------------------+-------------------------+------------------+----------------... | |
snowflake_docs/approximate_jaccard_index_5_0.txt | Usage Notes ¶
* ` DISTINCT ` can be included as an argument, but has no effect.
* The input MinHash states must have MinHash arrays of equal length.
* The array length of the input MinHash states is an indicator of the quality of approximation.
the better the approximation. However, this value has a linear... | |
snowflake_docs/session-variables_0_0.txt | /
Variables
| |
snowflake_docs/top_n_0_0.txt | /
Categories:
| |
snowflake_docs/system_cancel_query_5_0.txt | Examples ¶
SELECT SYSTEM$CANCEL_QUERY('d5493e36-5e38-48c9-a47c-c476f2111ce5');
+-------------------------------------------------------------+
| SYSTEM$CANCEL_QUERY('D5493E36-5E38-48C9-A47C-C476F2111CE5') |
|-------------------------------------------------------------|
| query [d5493e36-5e38-48c... | |
snowflake_docs/aggregate_query_history_7_1.txt | ized_hash
ORDER BY avg_latency DESC
;
Copy
To analyze performance over time for a specific query of interest:
SELECT
interval_start_time
, total_elapsed_time:"avg"::number avg_elapsed_time
, total_elapsed_time:"min"::number min_elapsed_time
, total_elapsed_time:"p90"::number ... | |
snowflake_docs/query_acceleration_eligible_0_0.txt | /
Schema:
| |
snowflake_docs/show-primary-keys_4_0.txt | Usage Notes ¶
* The command does not require a running warehouse to execute.
* For each single-column primary key, the output contains one row.
* For each multi-column primary key, the output contains one row for each column in the primary key.
* If an account (or database or schema) has a large number of... | |
snowflake_docs/users_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
USER_ID
|
NUMBER
|
Internal/system-generated identifier for the user.
NAME
|
VARCHAR
|
A unique identifier for the user.
CREATED_ON
|
TIMESTAMP_LTZ
|
Date and time (in the UTC time zone) when the user’s account was created.
DELETED_ON
|
TIMESTAMP_... | |
snowflake_docs/show-row-access-policies_5_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
APPLY ROW ACCESS POLICY
|
Account
|
APPLY
|
Row access policy
|
OWNERSHIP
|
Row access policy
|
OWNERSHIP is a special privilege on an object that is automatically granted to
the role that created the object, but can ... | |
snowflake_docs/show-views_5_0.txt | Output ¶
The command output provides view properties and metadata in the following
columns:
Column
|
Description
---|---
created_on
|
The timestamp at which the view was created.
name
|
The name of the view.
reserved
|
(Reserved for future use.)
kind
|
The kind of view, either ` VIEW ` or ` MATERIALIZED_V... | |
snowflake_docs/drop_3_0.txt | General Usage Notes ¶
* The DROP command can include an ` IF EXISTS ` clause. If specified and the target object does not exist, the command does not return an error and completes successfully.
* The ` CASCADE | RESTRICT ` parameters apply only to databases, schemas, and tables, and is used to specify whet... | |
snowflake_docs/regexp_substr_8_1.txt | p_substr(string1, 'A\\W+(\\w)(\\w)(\\w)', 1, 1, 'e', 1) as
> "RESULT1",
> regexp_substr(string1, 'A\\W+(\\w)(\\w)(\\w)', 1, 1, 'e', 2) as
> "RESULT2",
> regexp_substr(string1, 'A\\W+(\\w)(\\w)(\\w)', 1, 1, 'e', 3) as
> "RESULT3"
> from demo3;
> +----+---------+---------+---------+
> | ID... | |
snowflake_docs/show-shares_6_0.txt | Examples ¶
Show all shares that have been created in your account or are available to
consume by your account:
>
> SHOW SHARES;
>
>
> +-------------------------------+----------+----------------------+---------------+-----------------------+------------------+--------------+------------------------------------... | |
snowflake_docs/snowflake-db-classes_10_0.txt | Create an Instance ¶
You can create an instance of a class using the CREATE _ <object> _ command
and the class constructor method.
Note
Instance names in a schema must be unique irrespective of the class they were
created from. For example, if you have an instance of the [ BUDGET
same schema.
For example, to create ... | |
snowflake_docs/commands-snowpark-container-services_4_0.txt | Service ¶
| |
snowflake_docs/st_startpoint_6_0.txt | Examples ¶
| |
snowflake_docs/data-types-structured_18_0.txt | Example: Changing the Key Names in an OBJECT ¶
To change the key names in a structured OBJECT, specify the RENAME FIELDS
keywords at the end of CAST. For example:
SELECT CAST({'city':'San Mateo','state': 'CA'}::OBJECT(city VARCHAR, state VARCHAR)
AS OBJECT(city_name VARCHAR, state_name VARCHAR) RENAME FIEL... | |
snowflake_docs/add_regex_7_0.txt | Access control requirements ¶
overview.html | |
snowflake_docs/drop-packages-policy_8_0.txt | Usage Notes ¶
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Access Control Requirements
4. Usage Notes
Language : **English** | |
snowflake_docs/join_2_1.txt | umentation.
> The ` ON ` clause is prohibited for ` CROSS JOIN ` .
The ` ON ` clause is unnecessary (and prohibited) for ` NATURAL JOIN ` ;
the join columns are implied.
For other joins, the ` ON ` clause is optional. However, omitting the ` ON `
clause results in a Cartesian product (every row of ` _ object_re... | |
snowflake_docs/data-types-structured_38_0.txt | Transforming Structured ARRAYs ¶
When pass a structured ARRAY to these functions, the functions return a
structured ARRAY of the same type:
The next sections explain how these functions work with structured ARRAYs.
* Functions That Add Elements to Arrays
* Functions That Accept Multiple ARRAYs as Input
| |
snowflake_docs/try_to_date_2_0.txt | Syntax ¶
TRY_TO_DATE( <string_expr> [, <format> ] )
TRY_TO_DATE( '<integer>' )
Copy
| |
snowflake_docs/h3_grid_distance_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
geospatial) H3_GRID_DISTANCE
Categories:
| |
snowflake_docs/st_geometryfromwkt_6_0.txt | label-data-types-geometry) .
| |
snowflake_docs/st_perimeter_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
geospatial) ST_PERIMETER
Categories:
| |
snowflake_docs/rtrim_1_0.txt | RTRIM ¶
Removes trailing characters, including whitespace, from a string.
See also :
| |
snowflake_docs/undrop-database_4_0.txt | Usage Notes ¶
* If a database with the same name already exists, an error is returned.
| |
snowflake_docs/desc-aggregation-policy_6_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
APPLY AGGREGATION POLICY
|
Account
|
APPLY
|
Aggregation policy
|
OWNERSHIP
|
Aggregation policy
|
OWNERSHIP is a special privilege on an object that is automatically granted to
the role that created the object, but c... | |
snowflake_docs/commands-model_3_0.txt | Model Version Commands ¶
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Model Commands
2. Model Version Commands
Language : **English** | |
snowflake_docs/st_within_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
geospatial) ST_WITHIN
Categories:
| |
snowflake_docs/regr_r2_3_0.txt | Arguments ¶
` _ y _ `
The dependent variable. This must be an expression that can be evaluated to a
numeric type.
` _ x _ `
The independent variable. This must be an expression that can be evaluated to
a numeric type.
` _ expr3 _ `
This is the optional expression used to group rows into partitions.
Important
Note... | |
snowflake_docs/replication_group_refresh_history_1_0.txt | REPLICATION_GROUP_REFRESH_HISTORY View ¶
* Database and share replication are available to all accounts.
This Account Usage view can be used to query the refresh history for a
replication-intro.html | |
snowflake_docs/sql-format-models_6_0.txt | Printing Output Strings Using the Fill Mode Modifier ¶
By default, the fill mode is set to _fill_ and the ` FM ` fill mode modifier
toggles it to _compact_ ; repeated use toggles it back to _fill_ , etc.
In most cases, using _fill_ mode on printing guarantees that format elements
produce output of a fixed width by ... | |
snowflake_docs/alter-application_1_0.txt | ALTER APPLICATION ¶
Available
This feature is not supported on Google Cloud Platform.
Modifies the properties of an installed application in the Native Apps
Framework. Use ALTER APPLICATION to upgrade an installed application to a
specific version or patch. This command is also used to enable or disable
debug mode f... | |
snowflake_docs/asin_3_0.txt | Arguments ¶
` _ real_expr _ `
This expression should evaluate to a real number greater than or equal to -1.0
and less than or equal to +1.0.
| |
snowflake_docs/update_5_0.txt | Usage Notes ¶
* If ` FALSE ` (default value), no error is returned and one of the joined rows is used to update the target row; however, the selected joined row is nondeterministic.
* IF ` TRUE ` , an error is returned, including an example of the values of a target row that joins multiple rows.
To set t... | |
snowflake_docs/session-variables_7_0.txt | Setting Variables on Connection ¶
variables can be passed as arguments in the connection string used to
initialize a session in Snowflake. This is especially useful when using tools
where the specification of the connection string is the only customization
possible.
For example, using the Snowflake JDBC driver, you ... | |
snowflake_docs/create-table_9_0.txt | Optional Parameters ¶
` { [ { LOCAL | GLOBAL } ] TEMP | TEMPORARY | VOLATILE |
TRANSIENT } `
Specifies that the table persists only for the duration of the [ session
and all its contents are dropped at the end of the session.
The synonyms and abbreviations for ` TEMPORARY ` (e.g. ` GLOBAL TEMPORARY ... | |
snowflake_docs/h3_cell_to_children_string_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
geospatial) H3_CELL_TO_CHILDREN_STRING
Categories:
| |
snowflake_docs/alter-network-rule_9_0.txt | Example ¶
Modify a network rule that is used to allow or block traffic from a range of
IPv4 addresses. Assumes that ` TYPE = IPV4 ` for the network rule.
ALTER NETWORK RULE cloud_network SET VALUE_LIST = ('47.88.25.32/27');
Copy
Modify a network rule that is used to allow or block traffic over AWS
PrivateLink... | |
snowflake_docs/create-task_7_0.txt | | ________ hour (0-23)
| |
snowflake_docs/alter-table_19_0.txt | TYPE = XML ¶
Available to all accounts.
` COMPRESSION = AUTO | GZIP | BZ2 | BROTLI | ZSTD | DEFLATE |
RAW_DEFLATE | NONE `
Use :
Data loading only
Definition :
* When loading data, specifies the current compression algorithm for the data file. Snowflake uses this option to detect how an already-... | |
snowflake_docs/dynamic_table_refresh_history_2_0.txt | Syntax ¶
DYNAMIC_TABLE_REFRESH_HISTORY(
[ DATA_TIMESTAMP_START => <constant_expr> ]
[ , DATA_TIMESTAMP_END => <constant_expr> ]
[ , RESULT_LIMIT => <integer> ]
[ , NAME => '<string>' ]
[ , NAME_PREFIX => '<string>' ]
[ , ERROR_ONLY => { TRUE | FALSE } ]
)
Copy
| |
snowflake_docs/system_create_billing_event_3_0.txt | Arguments ¶
**Required:**
` _ class _ `
Identifier for the custom event class.
Type: String
The identifier has the following requirements:
* Must start with a letter (A-Z) or an underscore (“_”).
* Must contain only letters, underscores, decimal digits (0-9), and dollar signs (“$”).
* Length cannot exceed 6... | |
snowflake_docs/alter-table_28_0.txt | Adding, Renaming, and Dropping Columns in an External Table ¶
The following statement creates an external table named ` exttable1 ` :
CREATE EXTERNAL TABLE exttable1
LOCATION=@mystage/logs/
AUTO_REFRESH = true
FILE_FORMAT = (TYPE = PARQUET)
;
Copy
DESC EXTERNAL TABLE exttable1;
Copy
... | |
snowflake_docs/copy-into-table_21_0.txt | Loading files directly from an external location ¶
The following example loads all files prefixed with ` data/files ` from a
storage location (Amazon S3, Google Cloud Storage, or Microsoft Azure) using a
named ` my_csv_format ` file format:
**Amazon S3**
> Access the referenced S3 bucket using a referenced storage... | |
snowflake_docs/hex_decode_string_4_0.txt | Returns ¶
The returned value is a string (VARCHAR).
| |
snowflake_docs/parse_xml_3_0.txt | Arguments ¶
**Required:**
` _ string_containing_xml _ ` . OR . ` STR => _ string_containing_xml _
`
This expression should evaluate to a VARCHAR. The VARCHAR should contain valid
XML.
**Optional:**
` _ disable_auto_convert _ ` . OR . ` DISABLE_AUTO_CONVERT => _
disable_auto_convert _ `
Boolean expression... | |
snowflake_docs/desc-event-table_5_0.txt | Examples ¶
Describe the columns in the event table named ` my_logged_events ` :
>
> DESC EVENT TABLE my_logged_events;
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Usage Notes
4. Examples
Related content
Language : **English** | |
snowflake_docs/copy-into-location_13_0.txt | Unloading data from a table to files in a table stage ¶
Unload data from the ` orderstiny ` table into the table’s stage using a
folder/filename prefix ( ` result/data_ ` ), a named file format ( ` myformat
` ), and gzip compression:
>
> COPY INTO @%orderstiny/result/data_
> FROM orderstiny FILE_FORMAT =... | |
snowflake_docs/revoke-database-role-share_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier (i.e. name) for the database role; must be unique in
the database in which the role is created.
The identifier must start with an alphabetic character and cannot contain
spaces or special characters unless the entire identifier string is enclosed
in double quotes (... | |
snowflake_docs/uuid_string_3_0.txt | Usage Notes ¶
* UUID_STRING supports generating two versions of UUIDs, both compliant with RFC 4122:
* A version 4 (random) UUID is returned when no arguments are provided to the function.
* A version 5 (named) UUID can be produced by providing a ` _ uuid _ ` string (known as the namespace) as the first... | |
snowflake_docs/system_get_predecessor_return_value_2_0.txt | Syntax ¶
SYSTEM$GET_PREDECESSOR_RETURN_VALUE('<task_name>')
Copy
| |
snowflake_docs/desc_3_0.txt | Usage Notes ¶
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Usage Notes
Language : **English** | |
snowflake_docs/show-network-rules_8_0.txt | label-access-control-securable-objects) , see [ Overview of
| |
snowflake_docs/trunc2_2_0.txt | Syntax ¶
TRUNC( <date_or_time_expr>, <date_or_time_part> )
Copy
| |
snowflake_docs/alter-pipe_5_0.txt | Examples ¶
Pause the ` mypipe ` pipe:
>
> alter pipe mypipe SET PIPE_EXECUTION_PAUSED = true;
>
>
> Copy
Add or modify the comment for pipe ` mypipe ` :
>
> alter pipe mypipe SET COMMENT = "Pipe for North American sales data";
>
>
> Copy
| |
snowflake_docs/create-managed-account_11_0.txt | Examples ¶
CREATE MANAGED ACCOUNT reader_acct1
ADMIN_NAME = user1 , ADMIN_PASSWORD = 'Sdfed43da!44' ,
TYPE = READER;
Copy
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------... | |
snowflake_docs/set_spending_limit_5_0.txt | Returns ¶
The spending limit has been updated to <n> credits.
| |
snowflake_docs/show-indexes_5_0.txt | Usage Notes ¶
| |
snowflake_docs/zeroifnull_5_0.txt | Examples ¶
The following example shows the output of the function for various input
values:
>
> SELECT column1, ZEROIFNULL(column1)
> FROM VALUES (1), (null), (5), (0), (3.14159);
> +---------+---------------------+
> | COLUMN1 | ZEROIFNULL(COLUMN1) |
> |---------+---------------------|
> ... | |
snowflake_docs/array_construct_compact_1_0.txt | ARRAY_CONSTRUCT_COMPACT ¶
Returns an array constructed from zero, one, or more inputs; the constructed
array omits any NULL input values.
See also:
| |
snowflake_docs/object_construct_keep_null_2_0.txt | Syntax ¶
OBJECT_CONSTRUCT_KEEP_NULL( [<key1>, <value1> [, <keyN>, <valueN> ...]] )
OBJECT_CONSTRUCT_KEEP_NULL( * )
Copy
| |
snowflake_docs/data-types-datetime_3_0.txt | DATE ¶
Snowflake supports a single DATE data type for storing dates (with no time
elements).
DATE accepts dates in the most common forms ( ` YYYY-MM-DD ` , ` DD-MON-YYYY
` , etc.).
In addition, all accepted TIMESTAMP values are valid inputs for dates;
however, the TIME information is truncated.
For DATE and TIMESTA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.