SQL Keywords Flashcards

1
Q

Adds a column in an existing table

A

ADD

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

Adds a constraint after a table is already created

A

ADD CONSTRAINT

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

Adds, deletes, or modifies columns in a table, or changes the data type of a column in a table

A

ALTER

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

Changes the data type of a column in a table

A

ALTER COLUMN

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

ALTER TABLE

A

Adds, deletes, or modifies columns in a table

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

ALL

A

Returns true if all of the subquery values meet the condition

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

AND

A

Only includes rows where both conditions is true

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

ANY

A

Returns true if any of the subquery values meet the condition

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

AS

A

Renames a column or table with an alias

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

ASC

A

Sorts the result set in ascending order

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

BACKUP DATABASE

A

Creates a back up of an existing database

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

BETWEEN

A

Selects values within a given range

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

CASE

A

Creates different outputs based on conditions

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

CHECK

A

A constraint that limits the value that can be placed in a column

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

COLUMN

A

Changes the data type of a column or deletes a column in a table

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

CONSTRAINT

A

Adds or deletes a constraint

17
Q

CREATE

A

Creates a database, index, view, table, or procedure

18
Q

CREATE DATABASE

A

Creates a new SQL database

19
Q

CREATE INDEX

A

Creates an index on a table (allows duplicate values)

20
Q

CREATE OR REPLACE VIEW

A

Updates a view

21
Q

CREATE TABLE

A

Creates a new table in the database

22
Q

CREATE PROCEDURE

A

Creates a stored procedure

23
Q

CREATE UNIQUE INDEX

A

Creates a unique index on a table (no duplicate values)

24
Q

CREATE VIEW

A

Creates a view based on the result set of a SELECT statement

25
Q

DATABASE

A

Creates or deletes an SQL database

26
Q

DEFAULT

A

A constraint that provides a default value for a column

27
Q

DELETE

A

Deletes rows from a table

28
Q

DESC

A

Sorts the result set in descending order