chap 1 database and database users
chap 1 database and database users
Acquisition
Basic Definitions
• Database:
• A collection of related data.
• Data:
• Known facts that can be recorded and have an implicit meaning.
• Mini-world:
• Some part of the real world about which data is stored in a database. For example, student
grades and transcripts at a university.
• Database Management System (DBMS):
• A software package/system to facilitate the creation and maintenance of a computerized
database.
• Database system:
• The DBMS software together with the data itself. Sometimes, the applications are also
included.
Impact of Databases and
Database Technology
• Businesses: Banking, Insurance, Retail, Transportation, Healthcare,
Manufacturing
• Service industries: Financial, Real-estate, Legal, Electronic Commerce,
Small businesses
• Education : Resources for content and Delivery
• More recently: Social Networks, Environmental and Scientific
Applications, Medicine and Genetics
• Personalized applications: based on smart mobile devices
A simplified architecture for a
database system
View level: what
application programs see;
views can also hide
information (such as an
instructor’s salary) for
security purposes.
Physical level:
describes how a
record instructor)
is stored.
A simplified architecture for a
database system
What a DBMS Facilitates
• Define a particular database in terms of its data types, structures, and constraints
• Construct or load the initial database contents on a secondary storage medium
• Manipulating the database:
• Retrieval: Querying, generating reports
• Modification: Insertions, deletions and updates to its content
• Accessing the database through Web applications
• Processing and sharing by a set of concurrent users and application programs –
yet, keeping all data valid and consistent
Other DBMS Functionalities
• DBMS may additionally provide:
• Protection or security measures to prevent unauthorized access
• “Active” processing to take internal actions on data
• Presentation and visualization of data
• Maintenance of the database and associated programs over the lifetime of
the database application
Application Programs and DBMS
• Applications interact with a database by generating
- Queries: that access different parts of data and formulate the result of a
request
- Transactions: that may read some data and “update” certain values or
generate new data and store that in the database
Example of a Database
(with a Conceptual Data Model)
• Mini-world for the example:
• Part of a UNIVERSITY environment
• Some mini-world entities:
• STUDENTs
• COURSEs
• SECTIONs (of COURSEs)
• (Academic) DEPARTMENTs
• INSTRUCTORs
Example of a Database
(with a Conceptual Data Model)
• Some mini-world relationships:
• SECTIONs are of specific COURSEs
• STUDENTs take SECTIONs
• COURSEs have prerequisite COURSEs
• INSTRUCTORs teach SECTIONs
• COURSEs are offered by DEPARTMENTs
• STUDENTs major in DEPARTMENTs
• Note: The above entities and relationships are typically expressed in a conceptual
data model, such as the entity-relationship (ER) data or UML class model (see
Chapters 3, 4)
Example of a Simple Database
The relational model