SQL Data Update Flashcards

1
Q

What SQL statement is used to add new data?

A

INSERT

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

What clause is used to filter which rows to delete or update?

A

WHERE

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

What happens if you omit the WHERE clause in a DELETE?

A

All rows in the table will be deleted.

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

True or False: You must always list column names in an INSERT statement.

A

False. It’s optional if you’re inserting into all columns in order.

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

How do you increase a numeric column value by 10%?

A

SET column = column * 1.10

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