
Answer-first summary for fast verification
Answer: Reordering the columns, Converting the datatypes
The COPY INTO command in Snowflake supports data transformation during loading through the FILE_FORMAT specification and SELECT statement. Option B (Reordering the columns) is correct because you can use a SELECT statement in the COPY command to reorder, omit, or transform columns during loading. Option D (Converting the datatypes) is correct because Snowflake can automatically convert data types during loading, and you can also use functions in the SELECT statement for explicit type conversion. Option A (Performing aggregate calculations) is incorrect as aggregation requires GROUP BY operations which are not supported during COPY loading. Option C (Grouping by operations) is incorrect for the same reason - GROUP BY is not supported in COPY operations. Option E (Selecting the first few rows) is incorrect as COPY loads the entire file by default, though you could use filtering in the SELECT statement, but this isn't specifically about selecting 'first few rows'.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which two operations can be performed when loading a simple CSV file into a Snowflake table using the COPY INTO command?
A
Performing aggregate calculations
B
Reordering the columns
C
Grouping by operations
D
Converting the datatypes
E
Selecting the first few rows
No comments yet.