Section A in Sick Semester Test 1 2016 Flashcards
Briefly describe the following terms as used when referring to Database Systems.
a) Data
a) Data Raw facts from which the required information is derived. Data have little meaning unless they are grouped in a logical manner.
Briefly describe the following terms as used when referring to Database Systems.
b) Field
b) Field A character or a group of characters (numeric or alphanumeric) that describes a specific characteristic. A field may define a telephone number, a date, or other specific characteristics that the end user wants to keep track of.
Briefly describe the following terms as used when referring to Database Systems.
c) Record
c) Record A logically connected set of one or more fields that describes a person, place, event, or thing. For example, a CUSTOMER record may be composed of the fields
CUST_NUMBER,
CUST_LNAME,
Briefly describe the following terms as used when referring to Database Systems.
d) File
d) File A collection of related records that contain information of interest to the end user. Related records reflect a relationship based on function.
- Although using a database system has advantages over previous data management approaches, database systems carry significant disadvantages. Briefly list five disadvantages of making use of a database system.
Increased cost Management complexity Maintenance currency (system should be kept current) Vendor dependency Frequent upgrade /replacement cycles
- Name the three components that an implementation ready data model should contain.
A description of the data structure that will store the end-user data.
A set of enforceable rules to guarantee the integrity of the data.
A data manipulation methodology to support the real-world data transformations.
Name and briefly describe the three parts involved in any SQL-based relational database system.
The end-user interface. – The interface allows the end user to interact with the data (by auto- generating SQL code).
A collection of tables stored in the database. In a relational database, all data are perceived to be stored in tables. The tables simply “present” the data to the end user in a way that is easy to understand.
SQL engine. – The SQL engine executes all queries or data requests.
- Briefly describe the use of the UNION operator
UNION combines all rows from two tables, excluding duplicate rows. The tables must have the same attribute characteristics (the columns and domains must be compatible) to be used in the UNION. When two or more tables share the same number of columns, when their corresponding columns share the same (or compatible) domains, they are said to be union-compatible.
- There are circumstances when an entity requires a composite primary key. Clearly indicate the circumstances in which a composite primary key would be an appropriate solution used to uniquely identify a record associated with an entity set.
Composite primary keys are particularly useful in two cases:
As identifiers of composite entities, where each primary key combination is allowed only once
in the M:N relationship.
As identifiers of weak entities, where the weak entity has a strong identifying relationship with
the parent entity.
- A characteristic of a good primary key is that it should not “change over time”. Indicate the implication of this characteristic by referring to the possible semantic meaning of attributes. Make use of a simple example to motivate your answer.
If an attribute has (1) semantic meaning, it might be subject to updates. This is why names do not make good primary keys. (2) For example, if you have JAN PAP as the primary key, what happens when he changes his name? (3) If a primary key is subject to change, the foreign key values must be updated, thus adding to the database work load. Furthermore, (4) changing a primary key value means that you are basically changing the identity of an entity. In short, the PK should be permanent and unchangeable.
Define the concept of a functional dependency. Make use of a short example to support your answer.
Attribute A determines attribute B if all the rows in the table that contain one particular value for A also have one value for attribute B.
Eg. Key Attribute = determinant, Non-key attribute = dependent.
- Define the concept of a partial dependency. Make use of a short example to support your answer
Partial dependency: Attribute B is dependent on only some of the attributes making up the composite primary key.
Eg. Composite key = determinant, Non-key attribute = dependent.
Briefly explain how database designers design and normalize databases.
First, an ERD is created through an iterative process. You begin by identifying relevant entities, their attributes, and their relationships. Then you use the results to identify additional entities and attributes. The ERD provides the big picture, or macro view, of an organization’s data requirements and operations.
Second, normalization focuses on the characteristics of specific entities; that is, normalization represents a micro view of the entities within the ERD. The normalization process might yield additional entities and attributes to be incorporated into the ERD. Therefore, it is difficult to separate normalization from ER modelling; the two techniques are used in an iterative and incremental process.
1:1 Relationships should be rare or plenty in any relational database design
Rare
Data redundancy leads
to data anomalies – Can destroy the effectiveness of the database