Lecture 8: Relational Data Model Flashcards

1
Q

Formal term for table , column, and row is

A

relation, attribute, tuple

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

All possible column values are called

A

domain

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

table definition is

A

schema of a relation

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

populated table

A

state of the relation

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

a relation must have a key and we can not find one

A

we create one sequentially

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

key of a relation role is

A

uniquely identifies that row in the table

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

columns represents the attribute which gives…

A

meaning to the data

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

row is a representation if

A

certain facts that correspond to a real world entity or relationship

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

Schema of a relation is denoted by

A

R(A1,A2…,An)

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

Schema is database is denoted by

A

S={R1,R2,…,Rn}

-R is the relation schema

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

Tuples are not considered to be

A

ordered even though they appear to be in a tabular form

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

all values in a tuple are …

A

considered atomic

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

each value must be from the domain of the attribute (T or F)

A

T

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

A null represent

A

unknown or inapplicable to certain tuples

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

Constraints are conditions that must hold all valid relation states (t or f)

A

t

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

the three main types of constraints are

A
  • key constraint
  • entity integrity constraint
  • referential integrity constraint
17
Q

implicit constraint

A

is the domain constraint

18
Q

superkey is a set

A

set of attributes SK of R with the following condition

19
Q

(t or f) two tuples in any valid relation state can have the same value for superkey

20
Q

a super key can be one or more (t or f)

21
Q

a key is a

A

minimal superkey

22
Q

any key is a superkey (t or f)

23
Q

any set of attributes that includes a key is a superkey (t or f)

24
Q

a minimal superkey is a key ( t or f)

25
primary key can be null values ( t or f)
f , it cant be null values
26
can foreign key attribute be null value ?
Yes , any other attribute that are not primary key has to right to do not null constraint nor just primary key attributes
27
if a relation is referencing another using foreign keys then it can't use values other than one in the relation its referencing (t or f)
t
28
in referencing relation there's an attribute called foreign key that reference the primary key of the referenced relation ( t or f)
t
29
Values of the FK can be one of the two things .... , ....
null, values exists in the referenced relation
30
A FK should not be a part of its primary key (t or f)
true, it's a different primary key but the fk is just there for connection zy ma bnrsm fel schema arrow lel FK bas bn3ml underline 3la another primary key
31
Semantic integrity is
based on the application and cannot be expressed by the model per se
32
a constraint specification language allows ...
triggers
33
in case of integrity violations several actions can be taken
- cancel : the operation that causes the violation - perform : the operation but inform the user of the violation - trigger additional updates : so the violation is corrected (cascade or null) - execute a user specified error correction routine
34
Insert may violate in
domain constraint, key constraint, entity integrity
35
Delete may violate in
if a primary key is being deleted is referenced from other tuples in the database
36
Update may violate in
domain constraint and not null constraint an attribute being modified
37
a tuple is an ordered set of values
enclosed in angled brackets