Logical Database using ER Flashcards

1
Q

Relation Model ?

A

Collections of relations (Tables)

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

Each Relations consists of what ?

A

Set of tuples (records/rows) &
Set of attributes (columns)

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

Each Relation is described using ?

A

Schema &
Instance

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

Describe Relation Schema

A

Specifies structure of the relation -

Name
Attribute
Type(Domain)
Constraints

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

Describe Relation Instance

A

It is a TUPLE, basically a ROW form the entire relation/table.

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

Degree (arity) of a Relation

A

Total number of ATTRIBUTES/COLUMNS

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

Cardinality of a Relation

A

Total number of TUPLES/ROW

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

Integrity Constraints

A

Condition specified on database schema.
Restriction on a tuple

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

Types of Integrity Constraints

A

5 types -
1. Primary key
2. Unique
3. Not Null
4. Foreign Key
5. Check

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

Super Key

A

Set of those keys that identify a row or a tuple uniquely
Super set of candidate key
Usually two tuples

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

Candidate Key

A

Attribute or set of attribute
Identify each record uniquely
{ID} and {Name, DOB}.

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

Primary Key

A

Identify each record uniquely
Can be only one attribute
Can be one per relation

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

Foreign Key

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

What does foreign key links

A

two tables/relations

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

Table with foreign key

A

Referencing Table
Child Table

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

Table using the foreign key as primary key

A

Referenced Table
Parent Table