Relational Algebra Flashcards
What is an information system?
An information system is a set of interrelated components that collect, manipulate, store and disseminate data and information and provide a feedback mechanism to meet an objective.
Explain the five components of an information system.
Collect - gather and capture raw data
Manipulate - covert or transform data into useful information.
Store - Keep data and information available for future use.
Disseminate - Produce useful information
Feedback - Is information from the system that is used to make changes to the collection or manipulation of data.
Distinguish between information and data?
Data consists of raw facts.
Information is a collection of facts organised so that they have additional value.
What do the following stand for?
IS
DB
DBMS
Information Systems
Database
Database Management System
What is a DB?
A DB is a collection of logically related data of interest to the IS.
What is DBMS?
Is a software package used to define, create, use and maintain a database.
What is a database system?
The combination of a DBMS and a DB.
What should a DBMS be able to manage (3) and how should it do it (2)?
Large datasets
Shared datasets (multiple users)
Persistent datasets (data lasts beyond program execution)
Reliably
With privacy
With Efficiency (using the appropriate amount of resources) & Effectively (supporting the productivity of its users)
How is inconsistency in data avoided in relation to DBMS?
Integration of dataset and sharing allows a reduction of redundancy and the consequent possibility of inconsistency.
What is the principle of concurrency in relation to DBMS?
Concurrency involves facilitating multiple accesses that can be simultaneous to data which is suitably organised for this purpose.
What is a Database approach?
A database approach is a method of implementing DBMS, which has an integrated resource for multiple departments, avoids inconsistency and allows concurrency.
What is a file-based approach?
Every application program/department stores its data in its dedicated files. Duplicated or redundant information is stored. Inconsistency between departments, lack of concurrency.
Why is database approach superior to file-based approach?
Database approach has efficiency, consistency and concurrency. Loose coupling between applications and data makes DBMS much easier to maintain. Data format can be changed without having to massively alter application program and vica-versa.
List the four elements of a database system.
Data model
Database schemas versus instances
Database languages
Database users
What is a data model?
A data model is a set of concepts and constructs used to describe and organise data items, their characteristics and relationships. There are two types conceptual and logical model.
Distinguish between conceptual and logical model.
Conceptual:
- Early stages
- Abstract description of data items, characteristics and relationships.
- Independent of implementation environment.
- Entity-Relationship Model (ER)
Logical:
- Late stages
- Translates concept into specific implementation environment.
- Specific to implementation environment but abstracts from physical structures.
- Relational Model (R)
Give an example of feedback in an information system.
A payroll system will trigger an error if an employee in a grocery store is being paid 200 euro an hour, so the model can be changed as this is obviously incorrect.
Explain the difference between database schema and database instance.
Database Schema: Description of the data including data items, characteristics, relationships, constraints. Invariant in time.
Database Instance: Made up of actual data. Changes with time.
Define the two types of database languages.
Data definition language (DDL): used to define database schemas and access authorisations.
Data manipulation language (DML): used to retrieve and update database instances.
Name five types of database users.
-Information Architects
-Database Designers
-Database Administrators
-Application Developers
-Business Users
What is the relational model?
A logical model where a DB is represented as a collection of relations.
What is the set of attributes of a relation called?
Schema
What is a relation?
A relation is a set of tuples, each of which represents a real-world entity.
What are tuples? What is true of all tuples in a relation.
A tuple is an ordered list of attribute values describing aspects of the entity. All tuples in a relation are homogeneous (same type).