INTRODUCTION TO DATABASES Flashcards
What are the limitations of file-based systems?
- Separation and isolation of data- Since each program is responsible for its own data a user may ne unaware of potentially useful information in other programs
- Duplication of data when the same data is held by different programs. This may lead to wastage of space and or potentially different formats or values for the same item
- Program-data dependence- This is disadvantageous since if any changes are to be made on the data the application has to be rewritten
- Incompatible file formats- Programs are written in different languages so they cannot easily access each others files
- Inflexibility in querying stored data
- Increase in number of various application programs- Any new requirement requires a new program
What is a database?
a shared collection of logically related data and its description designed to meet an organizations information needs
What is an entity?
A distinct object (person, thing, event, place etc) in an organization that is represented in a database
What is an attribute
A property that describes a certain aspect of an object that we wish to record
What is a relationship?
An association between entities
What is a DBMS?
Software that enables users to create, define, maintain and control access to a database.
It interacts with both the actual database and the application software
What functionalities does a DBMS provide?
- Allows users to specify the types of data as well as the constraints on the data. Done using a data definition language(DDL)
- Allows users to create, read, update and delete (CRUD) data from the database. Done using a data manipulation language (DML)
- Provides controlled access to the data in the database (authorization) . Done using the data control language (DCL)
What is a query language?
Query language (QL) refers to any computer programming language that requests and retrieves data from database and information systems
Give examples of query languages.
Structured Query Language (SQL) Transact SQL (T-SQL) Contextual Query Language (CQL) Object Query Language (OQL) Language Integrated Inquiry (LINQ) Yahoo Query Language (YQL) Bing Query Language (BCL) XQuery
Give examples of DBMSs
MySQL Oracle MS Access SQL Server File Maker FoxPro
What is the function of database application programs?
- Used to create and maintain the database
- Enables the user to access the database
- Access the database, process the data and generate the required information
Give examples of database application programs.
Amazon
CNN.
eBay.
Facebook.
What are the characteristics of the database approach?
- Single repository of data that is sharable by multiple users thus favoring concurrency
- Multiple views ( a subset of a database tailored for the needs of the user) of data that allows some level of customization for the user
- Self describing- System catalogue contains Metadata (data that describes other data) eg definitions of database objects (eg tables) and security information about the type of access users have
- Program-data independence- capability of leaving data intact and accessible regardless of modifications to the database that contains the data.
What are the 5 major components that make a DBMS environment?
- Hardware- Can range from a PC to Network devices
- Software-Collection of programs used by computers in the database system eg DBMS, Operating System and Network software
- Procedures- Instructions and rules that should be applied when designing and using databases
- People-Users of the database
- Data- acts as the bridge between the human (people and procedures) and machine (hardware and software) component
What are the types of roles within a database environment?
- Database Administrator- Management of data within the database. Tasks include maintaining the data dictionary, monitoring performance, and enforcing organizational standards and security.
- Database Designers- Responsible for defining the detailed database design, including tables, indexes, views, constraints, triggers and other database-specific constructs. Solves a problem and makes an entity relationship diagram (ERD).
- Application developers
- End-Users