Trắc Nghiệm SQL - Bài 26
1-
|
Nulls, if used improperly, can create problems because they can represent:
|
|
A -
|
An unknown attribute value.
|
|
B -
|
A known, but missing, attribute value.
|
|
C -
|
A "not applicable" condition.
|
|
D -
|
All of the above
|
2-
|
SELECT C1.CustName, C1.SalesRepNo
FROM CUSTOMER C1;
the "C1" is called a(n) ________________ .
|
|
A -
|
term
|
|
B -
|
alias
|
|
C -
|
convention
|
|
D -
|
phrase
|
3-
|
The following table and functional Dependencies exhibits what type of dependency?
Table (A, B, C)
A -> C
A -> B
B -> C
|
|
A -
|
Transitive Dependency
|
|
B -
|
Full Dependency
|
|
C -
|
Partial Dependency
|
|
D -
|
A and B
|
4-
|
A table that meets the requirements of a relation is said to be in which normal form?
|
|
A -
|
first normal form
|
|
B -
|
second normal form
|
|
C -
|
third normal form
|
|
D -
|
Boyce-Codd Normal Form
|
5-
|
A relation scheme R is in 3rd normal form if
|
|
A -
|
Each nonprime attribute in R is fully dependent on every key.
|
|
B -
|
R satisfies 2nd normal form and no nonprime attribute of R is transitively dependent of the primary key.
|
|
C -
|
R contains only 3 keys
|
|
D -
|
All attribute in R have atomic domains.
|
6-
|
Under what condition(s) is a relation always in 2NF?
|
|
A -
|
When all functional dependencies are partial
|
|
B -
|
(II) if there is only one, single attribute key
|
|
C -
|
(I) and (II)
|
|
D -
|
(I) if every candidate key is a single attribute key.
|
7-
|
Which of the following is not a relation?
|
|
A -
|
X(B, C)
|
|
B -
|
Y(D, E, F)
|
|
C -
|
W(A)
|
|
D -
|
Z(J, K(L, M))
|
8-
|
Consider a relation R with five attribute A B C D E. You are given the following dependencies: A-
>B, B C->E and E D->A. R is:
|
|
A -
|
1NF
|
|
B -
|
2NF(khóa là ACD,BCD,ECD)
|
|
C -
|
3NF
|
|
D -
|
BCNF.
|
9-
|
Table TT {A, B, C, D, E} and a set of functional dependencies A->D,E ; D->B,C; A,C->B; The
primary key is
|
|
A -
|
AE
|
|
B -
|
A
|
|
C -
|
DA
|
|
D -
|
AB
|
10-
|
Table TT{A, B, C, D, G, H} and a set of functional dependencies G,H->A,D; A,G->B ; C,D->G,H;
C->A; B,H->C;
The closure of {A B H} is:
|
|
A -
|
A B C D G
|
|
B -
|
A C G H
|
|
C -
|
A B C H
|
|
D -
|
A C G H B
|
[Người đăng: Thành Lãm - ST]
|