Mock Exam Flashcards
What does the HAVING clause do?
filters the rows (after aggregation)
What does the SELECT line do?
determines which columns appear
What does the FROM clause do?
determines which tables are searched
What does the GROUP BY clause do?
determines how aggregate functions are evaluated
What does the WHERE clause do?
filters the rows (before aggregation)
What should a composite key index do?
It should improve the performance of some SELECT queries.
Of the following options, which is Database Vendor Dependent:
- Physical Design
- The Data Dictionary
- Logical Design
- Normalisation
Physical Design
What is an important part of a database administrator’s role
Ensuring that the database is backed up regularly.
All tables must have a foreign key - True or False?
False
Foreign Keys ensure referential integrity - True or False?
True
What is the term for combining two relations based on values in one attribute in each relation being the same?
Equi-Join
The label at the “child” end of an optional, one-to-many relationship should be:
0..*
What is the stage of normalisation at which the following issue is addressed:
Eliminate partial key dependancies:
Second Normal Form
Select the true statement about the multiplicity label shown:
0..1
Select one:
a. The entity is mandatory. The corresponding foreign key cannot be null.
b. The entity is optional. The corresponding foreign key cannot be null.
c. This is not a valid multiplicity label.
d. The entity is optional. The corresponding foreign key may be null.
e. The entity is mandatory. The corresponding foreign key may be null.
The entity is optional. The corresponding foreign key may be null.
Each table should have exactly one Primary Key - True or False?
True