This command was executed:
SQL
SELECT seq4(), uniform(1, 10, RANDOM(12))
FROM TABLE(GENERATOR(TIMELIMIT => NULL))
ORDER BY 1;
How many rows will be generated?
A Data Analyst executes a query in a Snowflake worksheet that returns the total number of daily sales, and the total amount for each sale. How can the Analyst check the distribution of the total amount, without running the query again?
A Directed Acyclic Graph (DAG) of 12 tasks (ETLDAILY) failed because one of the tasks failed (STEP10), therefore the dependent tasks (STEP11 and STEP12) did not run. Which command is needed to re-run task STEP10 and the two dependent tasks?
A Data Analyst is working with a table that has 1 record per day, with sales information. Which window function would calculate a 7-day moving average of sales, where SALES_DATE represents the date column?
A company is looking for new headquarters and wants to minimize the distances employees have to commute. The company has geographic data on employees' residences. Through the Snowflake Marketplace, the company obtained geographic data for possible locations of the new headquarters. How can the distance between an employee's residence and potential headquarters locations be calculated in meters with the LEAST operational overhead?
What scheme is used by Snowflake to estimate the approximate similarity between two or more data sets?
Which Snowflake SQL would a Data Analyst use in a trained Cortex model named forecast_model to retrieve the components that contribute to the predictions?
A Data Analyst creates and populates the following table:
create or replace table aggr(v int) as select * from values (1), (2), (3), (4);
The Analyst then executes this query:
select percentile_disc(0.60) within group (order by v desc) from aggr;
What will be the result?
There are two similarly-structured and sized tables, Table_a and Table_b, in a schema with data populated in both tables. A Data Analyst is running queries as part of a preliminary analysis of the data to check the MAX value of a numeric column named num which is present in both the tables:
Query 1: SELECT MAX(num) FROM Table_a;
Query 2: SELECT MAX(num) FROM Table_b;
After running the queries, the Analyst observed that Query 2 ran significantly slower than Query 1. Why is this occurring?
A Data Analyst needs to temporarily hide a tile in a dashboard. The data will need to be available in the future, and additional data may be added. Which tile should be used?
A Data Analyst wants to use pandas code they have previously written to process a column of text and return multiple rows of parsed output for each input value. The Analyst wants to be able to join these results with other tables in a single transaction. Which type of extensibility feature should the Analyst use?
A Data Analyst has been asked to predict sales revenue through the end of the year. Which function will provide this information?
Table TB_A with column COL_B contains an ARRAY. Which statement will select the last element of the ARRAY?
A Data Analyst needs a sample of 10 rows from a table FCT_SALES that has billions of rows. Which commands can be used to accomplish this? (Select TWO).