COF-C02 · Question #305
Which transformation is supported by a COPY INTO <table> command?
The correct answer is C. Cast using a SELECT statement. The COPY INTO <table> command supports a limited set of transformations via a SELECT statement in the COPY query. Supported transformations include: column reordering, column omission, and casting (type conversion) using a SELECT statement. It does NOT support filtering with…
Question
Which transformation is supported by a COPY INTO <table> command?
Options
- AFilter using a where clause
- BFilter using a limit keyword
- CCast using a SELECT statement
- DOrder using an ORDER BY clause
How the community answered
(55 responses)- A2% (1)
- B2% (1)
- C93% (51)
- D4% (2)
Explanation
The COPY INTO <table> command supports a limited set of transformations via a SELECT statement in the COPY query. Supported transformations include: column reordering, column omission, and casting (type conversion) using a SELECT statement. It does NOT support filtering with WHERE clauses, limiting rows with LIMIT, or sorting with ORDER BY. If you need filtering or ordering, you should use an external stage query or a separate transformation step after loading.
Topics
Community Discussion
No community discussion yet for this question.