TABLE MANAGEMENT Flashcards

1
Q

INSERT INTO

A

Key work to add data

INSERT INTO order(name, id, price)
VALUE(‘Teddy beer’, 6578, 13);

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

VALUES

A

It lets you add data to a newly created columns.

INSERT INTO order(name, id, price)
VALUE(‘Teddy beer’, 6578, 13)

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

DELETE FROM

A

It lets you remove specific data from a existing table based in the condition.

DELETE FROM order
WHERE price > 7

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

UPDATE

A

Renames or changes a data in a table.

UPDATE user
SET time = ‘19:00’
WHERE name = ‘smith’ ;

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

SET

A

Sets an instruction to update.

UPDATE user
SET time = ‘19:00’
WHERE name = ‘smith’ ;

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

CREATE TABLE

A

A keyword that lets you create a column.

CREATE TABLE name(floor INTEGER, company TEXT)

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

What are 3 common data types.

A

INTEGER, REAL and TEXT

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

ALTER TABLE

A

keyword to makes changes to an existing table.

ALTER TABLE data
ADD discount INT;

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

ADD

A

Adds a new column.

ALTER TABLE data
ADD discount INT;

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

DROP COLUMN

A

Removes a whole column.

DROP COLUMN column

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

RENAME

A

Renames the column name.

ALTER TABLE order
RENAME order TO bill;

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