id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/snowflake-db_1_0.txt | SNOWFLAKE Database ¶
Snowflake provides a system-defined, read-only shared database named SNOWFLAKE
that contains metadata and historical usage data about the objects in your
organization and accounts. The SNOWFLAKE database is an example of [ Secure
other usage metrics for your organization and accounts.
In each ac... | |
snowflake_docs/create-masking-policy_2_0.txt | label-security-column-mgmt-approach) , [
advanced)
security-column-intro-ddl)
| |
snowflake_docs/current_schema_2_0.txt | Syntax ¶
CURRENT_SCHEMA()
Copy
| |
snowflake_docs/system_current_user_task_name_3_0.txt | Arguments ¶
None.
| |
snowflake_docs/bitnot_1_0.txt | BITNOT ¶
Returns the bitwise negation of a numeric expression.
Aliases:
BIT_NOT
| |
snowflake_docs/create-failover-group_0_0.txt | /
4. Replication
11. Failover/Failback
18. Client Redirect
CREATE FAILOVER GROUP
| |
snowflake_docs/regr_count_4_0.txt | Usage Notes ¶
* DISTINCT is not supported for this function.
* When used as a window function:
> * This function does not support:
>
>> * ORDER BY sub-clause in the OVER() clause.
>>
>> * Window frames.
| |
snowflake_docs/references_5_0.txt | Types of references and reference lifespan ¶
The lifespan of a reference can be specified at creation time.
* A _transient reference_ has a limited lifespan, either for the duration of the call in which the reference is passed, or for the duration of the session.
* A _persistent reference_ has an unlimited life... | |
snowflake_docs/operators-subquery_8_0.txt | Usage Notes ¶
* Correlated EXISTS subqueries cannot appear as an argument to an OR operator.
* Uncorrelated EXISTS subqueries are supported anywhere that a boolean expression is allowed.
| |
snowflake_docs/position_9_0.txt | BINARY Expressions ¶
Note that because the values below are hexadecimal representations, a single
BINARY byte is represented as two hex digits.
In this example, the returned value is 3 because ‘EF’ matches the 3rd byte
(the first byte is ‘AB’; the second byte is ‘CD’, and the third byte is ‘EF’):
>
> select posi... | |
snowflake_docs/alter-security-integration-oauth-external_5_0.txt | Examples ¶
The following example initiates operation of a suspended integration:
ALTER SECURITY INTEGRATION myint SET ENABLED = TRUE;
Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Usage notes
4. Examples
Language : **English** | |
snowflake_docs/merge_2_0.txt | Syntax ¶
MERGE INTO <target_table> USING <source> ON <join_expr> { matchedClause | notMatchedClause } [ ... ]
Copy
Where:
>
> matchedClause ::=
> WHEN MATCHED [ AND <case_predicate> ] THEN { UPDATE SET <col_name> =
> <expr> [ , <col_name2> = <expr2> ... ] | DELETE } [ ... ]
>
>
> Copy
>
>
> n... | |
snowflake_docs/alter-stage_12_0.txt | TYPE = PARQUET ¶
` COMPRESSION = AUTO | LZO | SNAPPY | NONE `
Use :
Data loading, data unloading, and external tables
Definition :
* When loading data, specifies the current compression algorithm for columns in the Parquet files.
* When unloading data, compresses the data file using the specified com... | |
snowflake_docs/st_envelope_4_0.txt | Returns ¶
geospatial.html | |
snowflake_docs/drop-projection-policy_10_0.txt | Example ¶
Drop the projection policy:
DROP PROJECTION POLICY do_not_project;
Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Access control requirements
4. Usage notes
5. Example
Language : **English** | |
snowflake_docs/st_isvalid_5_0.txt | Usage Notes ¶
| |
snowflake_docs/constraints-drop_0_0.txt | /
| |
snowflake_docs/system_client_version_info_5_0.txt | Usage Notes ¶
* You can also use the WHERE clause to return the information for a specific client or driver ( ` clientId ` ).
| |
snowflake_docs/uuid_string_0_0.txt | /
1. Random
5. Controlled Distribution
1. General Manipulation
34. Case Conversion
38. Regular Expression Matching
48. Other Matching/Comparison
66. Compression/Decompression
70. Encoding/Decoding
81. Cryptographic/Checksu... | |
snowflake_docs/system_explain_json_to_text_4_0.txt | Returns ¶
The function returns a VARCHAR containing the EXPLAIN output as text that has
been formatted to be relatively easy for humans to read.
| |
snowflake_docs/loop_0_0.txt | /
snowflake-scripting) LOOP
| |
snowflake_docs/coalesce_0_0.txt | /
reference/expressions-conditional) COALESCE
Categories:
| |
snowflake_docs/call_6_0.txt | Examples ¶
The following example calls a stored procedure named ` sv_proc1 ` and passes
in a string literal and number as input arguments. The example specifies the
arguments by position:
CALL sv_proc1('Manitoba', 127.4);
Copy
You can also specify the arguments by their names:
CALL sv_proc1(province => 'Man... | |
snowflake_docs/greatest_0_0.txt | /
reference/expressions-conditional) GREATEST
Categories:
| |
snowflake_docs/top_n_4_0.txt | Usage Notes ¶
* ` _ n _ ` must be a non-negative integer constant.
* ` TOP <n> ` and ` LIMIT <count> ` are equivalent.
| |
snowflake_docs/current_ip_address_1_0.txt | CURRENT_IP_ADDRESS ¶
Returns the IP address of the client that submitted the request.
| |
snowflake_docs/users_4_0.txt | Internal Snowflake User for Snowsight ¶
account, Snowflake creates an internal WORKSHEETS_APP_USER user to support the
web interface. This user is used to cache query results in an internal stage
in your account. For more information, see [ Getting started with Snowsight
Was this page helpful?
Yes No
Inc. All Righ... | |
snowflake_docs/get_ignore_case_8_0.txt | Examples ¶
Extract a field value from an object. The function returns the value for the
exact match:
SELECT GET_IGNORE_CASE(TO_OBJECT(PARSE_JSON('{"aa":1, "aA":2, "Aa":3, "AA":4}')),'aA') as output;
+--------+
| OUTPUT |
|--------|
| 2 |
+--------+
Copy
Extract a field value from an obje... | |
snowflake_docs/system_clustering_information_6_0.txt | label-clustering-keys-strategies) .
` total_partition_count `
Total number of micro-partitions that comprise the table.
` total_constant_partition_count `
Total number of micro-partitions for which the value of the specified columns
have reached a constant state (i.e. the micro-partitions will not benefit
significant... | |
snowflake_docs/map_size_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) (Map)
| |
snowflake_docs/alter-compute-pool_1_0.txt | ALTER COMPUTE POOL ¶
> services/overview) is available to all Snowflake accounts in AWS commercial
> regions except for trial accounts.
guide/snowpark-container-services/working-with-compute-pool) .
See also:
| |
snowflake_docs/is-null_1_0.txt | IS [ NOT ] NULL ¶
Determines whether an expression is NULL or is not NULL.
| |
snowflake_docs/delete_category_6_0.txt | Access control requirements ¶
overview.html | |
snowflake_docs/regr_syy_1_0.txt | REGR_SYY ¶
Returns REGR_COUNT(y, x) * VAR_POP(y) for non-null pairs.
| |
snowflake_docs/get_ddl_5_0.txt | Usage Notes ¶
The following notes apply to all supported objects:
* ` _ object_type _ ` and ` _ object_name _ ` (including ` _ namespace _ ` if specified) must be enclosed in single quotes.
* For ` _ object_type _ ` , ` TABLE ` and ` VIEW ` are interchangeable. If a ` TABLE ` object type is specified, an... | |
snowflake_docs/tag_references_with_lineage_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/show-resource-monitors_1_0.txt | SHOW RESOURCE MONITORS ¶
Lists all the resource monitors in your account for which you have access
privileges.
See also:
resource-monitor)
| |
snowflake_docs/remove_1_0.txt | REMOVE ¶
Removes files from either an external (external cloud storage) or internal
(i.e. Snowflake) stage.
For internal stages, the following stage types are supported:
* Named internal stage
* Stage for a specified table
* Stage for the current user
REMOVE can be abbreviated to RM.
See also:
| |
snowflake_docs/sentiment-snowflake-cortex_9_0.txt | Legal Notices ¶
Snowflake Cortex LLM Functions are powered by machine learning technology,
including Meta’s LLaMA 2. The foundation LLaMA 2 model is licensed under the [
LLaMA 2 Community License
(c) Meta Platforms, Inc. All Rights Reserved. Your use of any LLM Functions
based on the LLama 2 model is subject to Meta... | |
snowflake_docs/create-replication-group_10_0.txt | | | ______ day of month (1-31, or L)
| |
snowflake_docs/typeof_5_0.txt | Returns ¶
Returns a VARCHAR that contains the data type of the input expression, such as
BOOLEAN, DECIMAL, ARRAY, OBJECT, etc.
| |
snowflake_docs/create-aggregation-policy_4_0.txt | Parameters ¶
` _ name _ `
Identifier for the aggregation policy; must be unique for your schema.
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 enclos... | |
snowflake_docs/create-database_15_0.txt | label-replication-and-tags) .
| |
snowflake_docs/session-variables_10_0.txt | Session Variable Functions ¶
The following convenience functions are provided for manipulating session
variables to support compatibility with other database systems and to issue
SQL through tools that do not support the ` $ ` syntax for accessing
variables. Note that all these functions accept and return session v... | |
snowflake_docs/object_construct_5_0.txt | Usage Notes ¶
* The function accepts either:
* A sequence of zero or more key-value pairs (where keys are strings, and values are of any type).
* An asterisk. When invoked with an asterisk, the object is constructed using the attribute names as keys and the associated tuple values as values. See the exam... | |
snowflake_docs/rest_event_history_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/alter-view_10_0.txt | label-security-row-policy-refs) .
>
> alter view v1
> drop row access policy rap_v1;
>
>
> Copy
The following example shows how to combine adding and dropping row access
policies in a single SQL statement for a view. Verify the results by checking
security-row-policy-refs) .
>
> alter view v1
> dr... | |
snowflake_docs/set_spending_limit_9_0.txt | Examples ¶
Set the spending limit for the account budget to 500 credits per month:
CALL snowflake.local.account_root_budget!SET_SPENDING_LIMIT(500);
Copy
Set the spending limit for budget ` my_database.my_schema.my_budget ` to 100
credits per month.
CALL my_database.my_schema.my_budget!SET_SPENDING_LIMIT(10... | |
snowflake_docs/explain_json_6_0.txt | Examples ¶
The following example shows how to use this function:
>
> SELECT * FROM TABLE(
> EXPLAIN_JSON(
> SYSTEM$EXPLAIN_PLAN_JSON(
> 'SELECT Z1.ID, Z2.ID FROM Z1, Z2 WHERE Z2.ID = Z1.ID')
> )
> );
>
> +------+------+-----------------+-------------+-------... | |
snowflake_docs/show-classes_2_0.txt | Syntax ¶
SHOW CLASSES [ LIKE '<pattern>' ]
[ IN DATABASE [ <db_name> ] ]
[ LIMIT <rows> [ FROM '<name_string>' ] ]
Copy
| |
snowflake_docs/st_coveredby_1_0.txt | ST_COVEREDBY ¶
Returns TRUE if no point in one geospatial object is outside another
geospatial object. In other words:
This is equivalent to ` ST_COVERS(g2, g1) ` .
Although ST_COVEREDBY and ST_WITHIN might seem similar, the two functions have
subtle differences. For details on the differences between “covered by”... | |
snowflake_docs/with_12_2.txt | +---------------+
>
>
> Copy
| |
snowflake_docs/summarize-snowflake-cortex_5_0.txt | Returns ¶
A string containing a summary of the original text.
| |
snowflake_docs/create-external-volume_8_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/system_get_predecessor_return_value_0_0.txt | /
1. Control
29. Information
90. Query Information
SYSTEM$GET_PREDECESSOR_RETURN_VALUE
Categories:
| |
snowflake_docs/alter-failover-group_5_0.txt | label-account-replication-integrations) .
>
> If integration objects are included in the list of specified object types,
> the ` ALLOWED_INTEGRATION_TYPES ` parameter must be set.
>
> NETWORK POLICIES :
>
>
> All network policies in the source account.
>
> RESOURCE MONITORS :
>
>
> All resource monitors in the s... | |
snowflake_docs/h3_int_to_string_5_0.txt | Examples ¶
The following example converts the INTEGER value of an H3 cell ID to
hexadecimal format.
SELECT H3_INT_TO_STRING(617700171168612351);
Copy
+------------------------------------------------+
| H3_INT_TO_STRING(617700171168612351) |
|------------------------------------------------... | |
snowflake_docs/show-versions_4_0.txt | Example ¶
SHOW VERSIONS IN APPLICATION PACKAGE hello_snowflake_app;
Copy
+----------------+-------+---------+---------+-------------------------------+------------+-----------+-------------+-------+---------------+
| version | patch | label | comment | created_on | dropped_on ... | |
snowflake_docs/system_internal_stages_public_access_status_3_0.txt | Arguments ¶
None.
| |
snowflake_docs/remaining_balance_daily_3_0.txt | Usage Notes ¶
* Latency for the view may be up to 72 hours.
* On demand consumption balance resets after month close (typically on the 3rd or 4th day of the next month) after it is invoiced and paid.
* Until month close, data for a given day in a month can change to account for any end-of-month adjustments/c... | |
snowflake_docs/alter-table_25_0.txt | Adding Columns ¶
The following creates a table named ` t1 ` :
CREATE OR REPLACE TABLE t1(a1 NUMBER);
Copy
DESC TABLE t1;
Copy
+------+--------------+--------+-------+---------+-------------+------------+-------+------------+---------+-------------+
| name | type | kind | null? | default | ... | |
snowflake_docs/st_hausdorffdistance_5_0.txt | Usage Notes ¶
* Returns NULL if one or more input points are NULL.
| |
snowflake_docs/st_srid_7_0.txt | GEOGRAPHY Examples ¶
This shows a simple use of the ST_SRID function:
>
> SELECT ST_SRID(ST_MAKEPOINT(37.5, 45.5));
> +-----------------------------------+
> | ST_SRID(ST_MAKEPOINT(37.5, 45.5)) |
> |-----------------------------------|
> | 4326 |
> +--------------... | |
snowflake_docs/masking_policies_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
POLICY_NAME
|
TEXT
|
Name of the masking policy.
POLICY_ID
|
NUMBER
|
Internal/system-generated identifier for the masking policy.
POLICY_SCHEMA_ID
|
TEXT
|
Internal/system-generated identifier for the schema in which the policy
resides.
POLICY_SC... | |
snowflake_docs/snowpark_container_services_history_3_0.txt | Usage Notes ¶
* Latency for the view may be up to 180 minutes (3 hours).
* The credit rate usage is determined based on the machine type (instance family) of the compute pool, as outlined in the consumption table.
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Columns
2. Usage... | |
snowflake_docs/desc-projection-policy_3_0.txt | Syntax ¶
DESC[RIBE] PROJECTION POLICY <name>
Copy
| |
snowflake_docs/drop-row-access-policy_3_0.txt | Parameters ¶
` _ name _ `
Identifier for the row access 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 enclos... | |
snowflake_docs/system_explain_plan_json_6_0.txt | Examples ¶
These examples use the tables shown below:
>
> CREATE TABLE Z1 (ID INTEGER);
> CREATE TABLE Z2 (ID INTEGER);
> CREATE TABLE Z3 (ID INTEGER);
>
>
> Copy
This example uses a literal string containing n SQL statement as the input
parameter:
>
> SELECT SYSTEM$EXPLAIN_PLAN_JSON(
> 'SE... | |
snowflake_docs/alter-account_7_0.txt | label-connecting-via-url) of an account that was renamed. Once
the old URL is dropped, you must access the account with the URL that contains
the new account name.
If an account has an old account URL because it was moved to another
organization, had its organization renamed, or was part of an organization
that was mer... | |
snowflake_docs/database_refresh_progress_1_0.txt | DATABASE_REFRESH_PROGRESS , DATABASE_REFRESH_PROGRESS_BY_JOB ¶
The DATABASE_REFRESH_PROGRESS family of functions can be used to query the
status of a database refresh along various dimensions:
* DATABASE_REFRESH_PROGRESS returns a JSON object indicating the current refresh status for a secondary database by name. ... | |
snowflake_docs/create-notification-integration_4_0.txt | Required Parameters ¶
` _ name _ `
String that specifies the identifier (i.e. name) for the integration; must be
unique in your account.
In addition, the identifier must start with an alphabetic character and cannot
contain spaces or special characters unless the entire identifier string is
enclosed in double quote... | |
snowflake_docs/drop-image-repository_9_0.txt | Examples ¶
The following example drops the repository named ` tutorial_repository ` :
DROP IMAGE REPOSITORY tutorial_repository;
Copy
+-------------------------------------------+
| status |
|-------------------------------------------|
| TUTORIAL_REPOSITORY su... | |
snowflake_docs/create-stage_13_3.txt | haracter ( ` ' ` ), or double quote character ( ` " ` ). To use the single
quote character, use the octal or hex representation ( ` 0x27 ` ) or the
double single-quoted escape ( ` '' ` ).
When a field contains this character, escape it using the same character. For
example, if the value is the double quote characte... | |
snowflake_docs/object_agg_4_0.txt | Examples ¶
CREATE OR REPLACE TABLE objectagg_example(g NUMBER, k VARCHAR(30), v VARIANT);
INSERT INTO objectagg_example SELECT 0, 'name', 'Joe'::variant;
INSERT INTO objectagg_example SELECT 0, 'age', 21::variant;
INSERT INTO objectagg_example SELECT 1, 'name', 'Sue'::variant;
INS... | |
snowflake_docs/st_centroid_1_0.txt | ST_CENTROID ¶
Returns the Point representing the geometric center of a [ GEOGRAPHY
| |
snowflake_docs/covar_samp_1_0.txt | COVAR_SAMP ¶
Returns the sample covariance for non-null pairs in a group. It is computed
for non-null pairs using the following formula:
> ` (SUM(x*y) - SUM(x) * SUM(y) / COUNT(*)) / (COUNT(*) - 1) `
Where ` x ` is the independent variable and ` y ` is the dependent variable.
See also:
| |
snowflake_docs/max_4_0.txt | Usage Notes ¶
* For compatibility with other systems, you can specify the DISTINCT keyword as an argument for the function, but it does not have any effect.
* If the function is called as a window function, the window can include an optional ` _ window_frame _ ` . The ` _ window_frame _ ` (either cumulative o... | |
snowflake_docs/get_notification_email_4_0.txt | Access Control Requirements ¶
* The following minimum privileges and roles are required to view results for _custom budgets_ :
* A role granted the USAGE privilege on the database and schema that contains the budget instance.
* The following role is required to view results for the _account budget_ :
guid... | |
snowflake_docs/data-sharing-usage_3_0.txt | General Usage Notes ¶
The Snowflake-specific views are subject to change. Avoid selecting all
columns from these views. Instead, select the columns that you want. For
example, if you want the ` name ` column, use ` SELECT name ` , rather than
` SELECT * ` .
Was this page helpful?
Yes No
Inc. All Rights Reserv... | |
snowflake_docs/st_srid_1_0.txt | ST_SRID ¶
Returns the SRID (spatial reference system identifier) of a [ GEOGRAPHY
Currently, for any value of the GEOGRAPHY type, only SRID 4326 is supported
and is returned.
| |
snowflake_docs/system_get_login_failure_details_14_0.txt | Examples ¶
The following example teaches you how to use the
SYSTEM$GET_LOGIN_FAILURE_DETAILS function with a UUID from a failed login
attempt associated with External OAuth, SAML, or key pair authentication:
1. Find the UUID in the error message:
> > Invalid OAuth access token. [0ce9eb56-821d-4ca9-a774-04ae8... | |
snowflake_docs/to_geography_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) TO_GEOGRAPHY
Categories:
| |
snowflake_docs/rtrim_2_0.txt | Syntax ¶
RTRIM(<expr> [, <characters> ])
Copy
| |
snowflake_docs/base64_decode_string_4_0.txt | Returns ¶
A string.
| |
snowflake_docs/into_2_0.txt | Syntax ¶
SELECT <expression1>
[ , <expression2> ]
[ , <expressionN> ]
[ INTO :<variable1> ]
[ , :<variable2> ]
[ , :<variableN> ]
FROM ...
WHERE ...
[ ... ]
Copy
Where:
` _ expression1 _ ` , . ` _ expression2 _ ` , . ` _ expressionN _ `
Specifies scalar expressi... | |
snowflake_docs/base64_decode_binary_10_0.txt | $%^&*()abcdefghijklmnopqrstuvwzyz1234567890[]{};:,./<>?-=~
|
>>
+-----------------------------------------------------------------------------------------+
>>
>>
>> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Arguments
3. Returns
4. Usage Notes
5. Examples ... | |
snowflake_docs/notification_history_4_0.txt | Output ¶
The function returns the following columns:
Column Name
|
Data Type
|
Description
---|---|---
CREATED
|
TIMESTAMP_LTZ
|
Timestamp when the notification was created.
PROCESSED
|
TIMESTAMP_LTZ
|
Timestamp of the last attempt to send the notification.
MESSAGE_SOURCE
|
TEXT
|
Type of object or feature t... | |
snowflake_docs/like_all_9_0.txt | Examples ¶
Create a table that contains some strings:
CREATE OR REPLACE TABLE like_all_example(name VARCHAR(20));
INSERT INTO like_all_example VALUES
('John Dddoe'),
('Joe Doe'),
('John_do%wn'),
('Joe down'),
('Tom Doe'),
('Tim down'),
(null);
Copy... | |
snowflake_docs/create-pipe_6_0.txt | Examples ¶
Create a pipe in the current schema that loads all the data from files staged
in the ` mystage ` stage into ` mytable ` :
>
> create pipe mypipe as copy into mytable from @mystage;
>
>
> Copy
Same as the previous example, but with a data transformation. Only load data
from the 4th and 5th columns ... | |
snowflake_docs/show-channels_0_0.txt | /
1. Stage
7. File Format
13. External Volume
20. Pipe
26. Snowpipe Streaming
28. Loading and Unloading
loading) SHOW CHANNELS
| |
snowflake_docs/alter-view_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
ALTER VIEW
| |
snowflake_docs/alter-failover-group_14_0.txt | | | | | |
| |
snowflake_docs/max_by_1_0.txt | MAX_BY ¶
Finds the row(s) containing the maximum value for a column and returns the
value of another column in that row.
For example, if a table contains the columns ` employee_id ` and ` salary `
, ` MAX_BY(employee_id, salary) ` returns the value of the ` employee_id `
column for the row that has the highest ... | |
snowflake_docs/limit_4_0.txt | Examples ¶
The following examples show the effect of LIMIT. For simplicity, these queries
omit the ` ORDER BY ` clause and assume that the output order is always the
same as shown by the first query. **Real-world queries should include ORDER
BY.**
>
> select c1 from testtable;
>
> +------+
> | C1 |... | |
snowflake_docs/create-procedure_25_0.txt | Scala ¶
` IMPORTS = ( ' _ stage_path_and_file_name_to_read _ ' [, ' _
stage_path_and_file_name_to_read _ ' ...] ) `
The location (stage), path, and name of the file(s) to import. You must set
the IMPORTS clause to include any files that your stored procedure depends on:
* If you are writing an in-line ... | |
snowflake_docs/regr_intercept_5_0.txt | Examples ¶
create or replace table aggr(k int, v decimal(10,2), v2 decimal(10, 2));
insert into aggr values(1, 10, null);
insert into aggr values(2, 10, 11), (2, 20, 22), (2, 25,null), (2, 30, 35);
Copy
select k, regr_intercept(v, v2) from aggr group by k;
---+-----------------------+
k | re... | |
snowflake_docs/show-alerts_7_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/sql-dml_4_0.txt | File Staging Commands (for Data Loading / Unloading) ¶
These commands do not perform any actual DML, but are used to stage and manage
files stored in Snowflake locations (named internal stages, table stages, and
user stages), for the purpose of loading and unloading data:
Was this page helpful?
Yes No
Inc. All Rig... | |
snowflake_docs/create-materialized-view_7_0.txt | Usage Notes ¶
* When you choose a name for the materialized view, note that a schema cannot contain a table and view with the same name. CREATE [ MATERIALIZED ] VIEW produces an error if a table with the same name already exists in the schema.
* When specifying the ` _ select_statement _ ` , note the following... | |
snowflake_docs/time_slice_2_0.txt | Syntax ¶
TIME_SLICE( <date_or_time_expr> , <slice_length> , <date_or_time_part> [ , <start_or_end> ] )
Copy
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.