Relational databases ( Topic 10 ) Flashcards
Data Hierarchy
Field
- Attributes about an entity
Record
• Related group of fields
File
- Related group of records
Database
– Related group of files
Database hierarchy diagram
( image document)
Database Management System (DBMS):
• Interface between software applications and the data in files.
- The program that manages and controls the data and the interfaces between the data and the application pro- grams that use the data stored in the database.
Database Administrator (DBA):
• Person responsible for maintaining the database.
- The person responsible for coordinating, controlling, and managing the database.
Data Dictionary
Information about the structure of the database
- Field names, descriptions and uses.
Data Warehouses for Business Intelligence
Data Warehouse
- Very large databases containing detailed and summarized data for a number of years that are used for analysis rather than transac- tion processing.
• Contains both detailed and summarised data for a number of years.
• Used for analysis rather than transaction processing.
Business Intelligence
- Analyzing large amounts of data for strategic decision making.
• Online analytical processing (OLAP)
• Data mining. (e.g. market-basket analysis; RFM method; statistical
analysis)
- Using sophisticated statistical analysis to “discover” unhypothesized relationships in the data.
Proper Controls
• To reap significant benefits from data warehousing.
File-oriented systems versus database systems diagram
( image document )
Advantages of Database Systems
Data Integration
• Files are logically combined and made accessible to various systems.
Data Sharing
• With data in one place it is more easily accessed by authorised users.
Minimising Data Redundancy and Data Inconsistency
• Eliminates the same data being stored in multiple files, thus reducing inconsistency in multiple versions of the same data.
Data Independence
• Data is separate from the programs that access it. Changes can be made to the data without necessitating a change in the programs and vice versa.
Cross-Functional Analysis
• Relationships between data from various organisational departments can be more easily combined.
Database Users and Designers
Different users of the database information are at an external level of the database. These users have logical views of the data.
At an internal level of the database is the physical view of the data which is how the data is actually physically stored in the system.
Designers of a database need to understand user’s needs and the conceptual level of the entire database as well as the physical view.
Functions of the DBMS: To support multiple logical views of data
diagram in image document
Record Layout
Document that shows the items stored in a file, including the order and length of the data fields and the type of data stored.
Logical view
How people con- ceptually organize, view, and understand the relationships among data items.
Physical view
The way data are physically arranged and stored in the computer system.
Schema
A description of the data elements in a database, the relationships among them, and the logical model used to organize and describe the data.
Three levels of schemas
conceptual-level schema - The organization-wide view of the entire database that lists all data elements and the relation- ships between them.
external-level schema - An in- dividual user’s view of portions of a database; also called a subschema.
internal-level schema - A low-level view of the entire database describing how the data are actually stored and accessed.
subschema
A subset of the schema; the way the user defines the data and the data relationships.
DBMS Languages
Data Definition Language (DDL): • Builds the data dictionary • Creates the database • Describes the subschema • Specifies record or field security constraints.
Data Manipulation Language (DML):
• Changes the content in the database
- Updates, insertions, and deletions.
Data Query Language (DQL):
• Enables the retrieval, sorting, and display of data from the database.
Relational Database
Relational data model represents the conceptual and external level schemas as if data are stored in tables.
Although the conceptual view appears to the user that this information is in one big table, it really is a set of tables that relate to one another.
Table:
Each row, a tuple, contains data about one instance of an entity.
- This is equivalent to a record.
Each column contains data about one attribute of an entity.
- This is equivalent to a field.