SQL DML Commands Flashcards

1
Q

COPY INTO<location></location>

A

Unloads data from a table (or query) into one or more files in one of the following locations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

COPY INTO<table>

A

Loads data from staged files to an existing table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DELETE

A

Remove rows from a table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

GET

A

Downloads data files from one of the following Snowflake stages to a local directory/folder on a client machine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

INSERT

A

Updates a table by inserting one or more rows into the table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

INSERT (multi-table)

A

Updates multiple tables by inserting one or more rows with column values (from a query) into the tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

LIST

A

Returns a list of files that have been staged (i.e. uploaded from a local file system or unloaded from a table) in one of the following Snowflake stages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

MERGE

A

Inserts, updates, and deletes values in a table based on values in a second table or a subquery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

PUT

A

Uploads (i.e. stages) data files from a local directory/folder on a client machine to one of the following Snowflake stages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

REMOVE

A

Removes files from either an external (external cloud storage) or internal (i.e. Snowflake) stage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

TRUNCATE TABLE

A

Removes all rows from a table but leaves the table intact (including all privileges and constraints on the table).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

UPDATE

A

Updates specified rows in the target table with new values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly