DMDB 7

DMDB 7

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Условный оператор. Вспомнить всё

Условный оператор. Вспомнить всё

8th - 9th Grade

10 Qs

Post Test Excel Logika IF

Post Test Excel Logika IF

10th Grade

10 Qs

7.2 Knowledge check

7.2 Knowledge check

9th Grade

10 Qs

مراجعة عامة في العلامات المخصصة للغة الـ HTML

مراجعة عامة في العلامات المخصصة للغة الـ HTML

10th Grade

7 Qs

Bài tập trắc nghiệm C++

Bài tập trắc nghiệm C++

3rd - 12th Grade

10 Qs

Java Basics #1

Java Basics #1

10th - 12th Grade

9 Qs

KIỂM TRA TX TIN HỌC 11

KIỂM TRA TX TIN HỌC 11

9th Grade

10 Qs

A Level Computing - Normalisation & SQL

A Level Computing - Normalisation & SQL

12th Grade

12 Qs

DMDB 7

DMDB 7

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

qzzxfns95h aus

Used 29+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is A a candidate key given:

R(A,B,C,D,E,F)

A-->B

A-->EF

BE-->CD

Yes

No

Answer explanation

The closure of A includes the whole relation R:

A-->B thus: {A,B}

A-->EF thus: {A,**B,E**,F}

BE-->CD thus {A,B,C,D,E,F}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is AB a candidate key given the same FDs:

R(A,B,C,D,E,F)

A-->B

A-->EF

BE-->CD

Yes

No

Answer explanation

No. Keys must be minimal. Since A is already a candidate key (= minimal set of attributes), AB is not minimal and thus not a candidate key!

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is AB a super key given this (different set of FD):

R(A,B,C,D,E,F)

A-->B

A-->F

BE-->CD

Yes

No

Answer explanation

AB is not a superkey, since the closure is not the whole relation!

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is ABC a super key given:

R(A,B,C)

A-->B

Yes

No

Answer explanation

Yes. AC would be a (minimal) candidate key, however as we are interested in a super key, and the whole relation is trivially a superkey, this holds.

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

The main goal(s) of the minimal basis algorithm is to/are to

Reduce the number of functional dependencies

Remove trivial dependencies

Get to a normal form

Ensure data integrity

Retain an equivalent set of functional dependencies

Answer explanation

See the lecture slides! Otherwise: Removing trivial FDs is just a small step in the algorithm. Getting to normal forms needs more than just the minimal basis. Data integrity is not related to the algorithm, but rather to the concept of functional dependencies, ...

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Why are redundancies problematic?

They waste storage space

They need to have application side logic

They introduce UPDATE-Anomalies

They introduce SELECT-Anomalies

Answer explanation

Media Image

Also: Redundancy introduces duplication, which wastes sotrage space and needs application side logic to handle those copies.

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Select all valid functional dependencies implied by this ER diagram.

A-->B

AC-->B

BC-->A

AB-->C

C-->B

Answer explanation

Due to the cardinality constraints, given A,C we know B and given BC we know A. Thus, those are the valid functional dependencies.