chapter 5 review Flashcards

1
Q

SQL functions fit into two board categories:
d
m

A

data manipulation language

data definition language

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

basic commands have a vocab of fewer than….. words?

A

100

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

ensure that a column will not have duplicate values?

A

unique

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

validate data in an attribute

A

check

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

create a dynamic subset of rows and columns from one or more table

A

create view

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

restrict the selection of rows based on a conditional expression

A

where

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

….creates physical files that hold a database

A

RDBMS

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

t or f: RDMS are the same

A

false

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

…. verifies that only registered users are able to access DB

A

DBMS

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

a key that is both not a null and a unique specification

A

primary key

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

….. will automatically enforce referential integrity for foreign key

A

RDBMS

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

command sequence ends with a…?

A

semicolon

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

ensure that column doesn’t accept nulls

A

not null constraints

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

ensure that all values in the column are unique

A

unique constraints

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

assign value to an attribute when a new row is added to the table

A

default constraints

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

validate data when the attribute value is entered

A

check

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

data manipulation commands:

A

insert
select
commit
update
rollback
delete

18
Q

used to enter data into table

A

insert

19
Q

t or f: when entering values, rows have to be between parentheses

A

true

20
Q

changes made to table contents are not physically saved on disk until:
d
p
c

A

database is closed
program is closed
commit command is used

21
Q

used to list contents of table

A

select

22
Q

columnist represents…… or….. attributes. separated by commas

A

one or more

23
Q

modify data in table

A

update

24
Q

t or f: if more than one attribute is to be updated in a row, separate the correction with a period.

A

false, commas

25
Q

undoes changes since the last commit?

A

rollback

26
Q

t or f: commit and rollback only work with commands to add,modify, or delete table rows

A

true

27
Q

deletes a table row

A

delete

28
Q

t or f: in delete, the (where) condition is optional

A

true

29
Q

query embedded inside another query?

A

subquery

30
Q

searching data involves multiple conditions

A

logical operators

31
Q

the (and, or, not) are?

A

logical operators

32
Q

mathematical field dedicated to using of logical operators

A

boolean algebra

33
Q

checks whether the attribute value is within range

A

between

34
Q

checks whether attribute value matches given string pattern

A

like

35
Q

checks if the subquery returns any rows

A

exists

36
Q

all changes in the table structure are made by using the …. command

A

alter

37
Q

t or f: update command updates everything

A

false, update existing command

38
Q

t or f: sql permits copying contents of selected table columns

A

true

39
Q

t or f: when a table is copied, integrity rules copy too

A

false

40
Q

logical operations work well in a …. environment

A

query

41
Q

…. clause produces a list of only values that are different from one another

A

distinct