chapter 5 review Flashcards

(41 cards)

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

19
Q

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

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

22
Q

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

23
Q

modify data in table

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
undoes changes since the last commit?
rollback
26
t or f: commit and rollback only work with commands to add,modify, or delete table rows
true
27
deletes a table row
delete
28
t or f: in delete, the (where) condition is optional
true
29
query embedded inside another query?
subquery
30
searching data involves multiple conditions
logical operators
31
the (and, or, not) are?
logical operators
32
mathematical field dedicated to using of logical operators
boolean algebra
33
checks whether the attribute value is within range
between
34
checks whether attribute value matches given string pattern
like
35
checks if the subquery returns any rows
exists
36
all changes in the table structure are made by using the .... command
alter
37
t or f: update command updates everything
false, update existing command
38
t or f: sql permits copying contents of selected table columns
true
39
t or f: when a table is copied, integrity rules copy too
false
40
logical operations work well in a .... environment
query
41
.... clause produces a list of only values that are different from one another
distinct