2017 level 6 Exam Flashcards
What is data redundancy, and which characteristics of the file system can lead to it?
Data redundancy exists when unnecessarily duplicated data is found in the database. E.g a customers phone number found in the customer file, sales,agent file, and the invoice file. Data redundancy is symptomatic of a (computer) file system, given its inability to represent and manage data relationships. Data redundancy
may also be the result of poorly designed databases that allow the same data to be kept in different locations.
What is data independence, and why is it lacking in file systems?
Data independence exists when the programs that access data are not dependent on the
data storage characteristics of the data.. File systems lack data independence because all data access
programs are subject to change when any of the file system’s data storage characteristics – such as changing a data type – change.
What is a DBMS, and what are its functions?
A DBMS is a collection of programs that manage the database structure and that control shared access to the data in the database.
The functions of a DBMS:
The DBMS stores the definitions of data and their relationships (metadata) in a data dictionary; any changes made are automatically recorded in the data dictionary.
The DBMS creates the complex structures required for data storage.
The DBMS transforms entered data to conform to the data structures in item 2.
The DBMS creates a security system and enforces security within that system.
The DBMS creates complex structures that allow multiple user access to the data.
The DBMS performs backup and data recovery procedures to ensure data safety.
The DBMS promotes and enforces integrity rules to eliminate data integrity problems.
The DBMS provides access to the data via utility programs and from programming languages interfaces.
The DBMS provides end-user access to data within a computer network environment.
What is structual independence, and why is it important?
Structural independence exists when data access programs are not subject to change when the files
structural characteristics, such as the number or order of the columns in a table, change. Structural independence is important because it decreases programming effort and program
maintenance costs.
Explain the difference between data and information.
Data are raw facts. Information is processed data to reveal the meaning behind the facts.
Data is the building blocks of information.
Information is produced by processing data.
Information is used to reveal the meaning of data.
Good, relevant, and timely information is the key to good decision making.
What is the role of a DBMS, and what are its advantages? What are its disadvantages?
A database management system (DBMS) is a collection of programs that manages the database structure and controls access to the data stored in the database. \+s - Improved data sharing. - Better data integration. - Minimized data inconsistency. - Improved data access. -Improved decision making. - Increased end-user productivity.
- s
- Increased costs.
- Management complexity.
- Maintaining currency.
- Vendor dependence.
- Frequent upgrade/replacement cycles.
What are the main components of a database system?
hardware, software, people, procedures, and data.
What are metadata?
data about data e.g defines the data characteristics such as the data type(such as character or numeric) and the relationships that link the data.
Explain why database design is important.
A good application can not work with a badly designed database
What are some basic database functions that a spreadsheet cannot perform.
Spreadsheets do not support self-documentation through metadata, enforcement of data types or
domains to ensure consistency of data within a column, defined relationships among tables, or
constraints to ensure consistency of data across related tables.
What common problems do a collection of spreadsheets created by end users share with the
typical file system?
A collection of spreadsheets shares several problems with the typical file system.
end users create their own copies of the data, which creates issues of data ownership.
This situation also creates islands of information where changes to one set of data are not reflected in all of
the copies of the data. This leads to lack of data consistency. Because the data in
various spreadsheets may be intended to represent a view of the business environment, a lack of
consistency in the data may lead to faulty decision making based on inaccurate data.
What is a business rule, and what is its purpose in data modeling?
A business rule is a brief, precise, and unambigous description of a policy, procedure, or principle
within a specific organization’s environment.
They are used to define entities, attributes, relationships, and constraints.
Because these components form the basis for a database design, the careful derivation and
definition of business rules is crucial to good database design.
What is a table, and what role does it play in the relational model?
In the relational databases designers and users perceive a table to be a matrix consisting of a
series of row/column intersections.Tables, also called relations, are related to each other by sharing
a common entity characteristic.Tables are used to describe the entities they represent, they provide an easy way to summarize entity characteristics and relationships among entities. And, because they are purely conceptual
constructs, the designer does not need to be concerned about the physical implementation aspects of the database design.
What is a relational diagram? Give an example.
A relational diagram is a visual representation of the relational database’s entities, the attributes
within those entities, and the relationships between those entities.
What is the difference between a database and a table?
A table is a logical structure that represents an entity set and is only one of the components of a database.
The database is a structure that houses one or more tables and metadata. Metadata include the data (attribute) characteristics and the relationships between the entity sets.
What does it mean to say that a database displays both entity integrity and referential integrity?
Entity integrity describes a condition in which all rows(tuples) within a table are uniquely identified by their primary key. The unique value requirement prohibits a null primary key value, because nulls are not unique.
Referential integrity means that the foreign key in any referencing table must always refer to a valid row in the referenced table. Referential integrity ensures that the relationship between two tables remains synchronized during updates and deletes.
Why are entity integrity and referential integrity important in a database?
Entity integrity and referential integrity are important because they are the basis for expressing and implementing relationships in the entity relationship model. Entity integrity ensures that each row is uniquely identified by the primary key. Therefore, entity integrity means that a proper search for an existing tuple (row) will always be successful. (And the failure to
find a match on a row search will always mean that the row for which the search is conducted does
not exist in that table.)
Referential integrity means that, if the foreign key contains a value,that value refers to an existing valid tuple (row) in another relation. Therefore, referential
integrity ensures that it will be impossible to assign a non-existing foreign key value to a table.
What two conditions must be met before an entity can be classified as a weak entity? Give an example of a weak entity.
- The entity must be existence-dependent on its parent entity.
- The entity must inherit at least part of its primary key from its parent entity.
For example, the (strong) relationship depicted in the text’s Figure 4.10 shows a weak CLASS entity:
CLASS is clearly existence-dependent on COURSE. (You can’t have a database class unless a
database course exists.)
The CLASS entity’s PK is defined through the combination of CLASS_SECTION and
CRS_CODE. The CRS_CODE attribute is also the PK of COURSE.