1 Exam Flashcards

1
Q

For each attribute of a relation, there is a set permitted values, called the______ of that attribute.

A

Domain

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

The database ________ refers to the logical design of the database.

A

Schema

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

The database ________ is a snapshot of the data in the database at a given instant in time.

A

instance

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

The tuples of relation one can be of______ order.

A

Any

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

Which one of the following is a set of one or more attributes taken collectively to uniquely identify a record?

A

Super key

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

If the ______ key from one relation is used as an attribute in that relation.

A

Primary

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

Tables in second normal form (2NF) must _______.

A

Eliminate all hidden dependencies

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

Which form simplifies and ensures that there are minimal data aggregates and repetitive groups?

A

1NF

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

Define function dependency!

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

List the Armstrong axioms.

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

Tuple means _______.

A

row

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

Attribute means _______.

A

column

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

The domain specifies what are acceptable ______ within a column.

A

data values

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

The degree of a table is the width or number of ______.

A

columns

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

The cardinality of a table is the depth or number of ______.

A

rows

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

The table violates which Normal Form and why?

A

2nd Normal Form because there are two partial dependencies

17
Q

An example of an update anomaly is ______.

A

mistyping one of its instances

18
Q

An example of a delete anomaly is ______.

A

deleting students resulting in loss of module details

19
Q

The normalized table structure for students and modules consists of ______.

A
  • Student(StudentID, StudentName)
  • Module(ModuleID, ModuleName)
  • Results(StudentID, ModuleID, Grade)
20
Q

The attribute ‘qualifications’ is multi-valued on the PK, hence the table is not in ______.

21
Q

To transform into 1NF tables, the solution can include ______.

A
  • Students(StaffID, StaffName, Qualification1, Qualification2, Qualification3)
  • Students(StaffID, StaffName)
  • Qualifications(StaffID*, Qualification)
22
Q

Entity type describes an object, a noun, a class of ______.

A

meaningful collection of objects

23
Q

Ternary relationships have ______ participating entity types.

24
Q

Binary relationships have ______ participating entity types.

25
The accuracy of the cardinality and participation is important in ______.
both cases
26
NULL value means not applicable or ______.
unknown
27
Types of integrity constraints include ______.
* Domain Integrity * Entity Integrity Constraint * Referential Integrity Constraint * Key Constraints
28
A functional dependency is a constraint between ______.
two sets of attributes
29
In an EER model, a category (union type) is created to include entities of ______.
different types
30
The purpose of the HAVING keyword is to ______.
qualify a GROUP BY with a condition
31
Stored procedures encapsulate frequently run segments of ______.
code written in SQL
32
The relational model derived from an ER model cannot accommodate ______ relationships.
many to many
33
Many to many relationships need to be resolved into ______ relationships.
one to many
34
Many to many relationships introduce an associative entity that maps to a ______.
new table with a composite key