Lec01_Introduction Databases and Database Users_Part1
Lec01_Introduction Databases and Database Users_Part1
Introduction:
Databases and Database Users: part1
IS.220
Books :
Fundamentals of Database Systems 7th -ElMasri, Navathe
Lecturers:
Uploaded before lecture on onedrive and smart learning
4 Class administration
2/17/2025
7 Introduction & Basic Definitions
Data:
❖ “ Known facts that can be recorded and have an implicit meaning”.
▪ Like names, telephone numbers and addresses.
Database:
❖ Database is a “collection of related data ”.
❖ Database has the following implicit properties:
1. A database represents some aspect of the real world, sometimes called the “mini
world”.
2. A database is a logically coherent collection of data with some inherent meaning.
(related data not a random data)
3. A database is designed, built, and populated with data for specific purpose.
❖ Examples: Airline reservation system, Students’ registration system.
2/17/2025
8 Types of Databases and Database Applications
Traditional Applications:
❖ Numeric and Textual Databases
More Recent Applications:
❖ Multimedia Databases
➢ store images, audio, video...
❖ Geographic Information Systems (GIS)
➢ store and analyze maps, weather data, and satellite images
❖ Data Warehouses and online analytical processing (OLAP)
➢ Extract and analyze information from different and very large databases; to
support decision making.
2/17/2025
9
DBMS
2/17/2025
10 Basic Definitions…
Database Management System (DBMS):
❖DBMS: “Is a collection of programs that enables users to create and
maintain a database”.
❖DBMS : “ is a general-purpose software system that facilitates the processes
of defining, constructing, manipulating and sharing databases among
various users and applications”.
Defining Database:
Defining a database involves :
❖Specifying the data types, structures, and constrains of the data to be stored in the
database.
❖The database definition or descriptive information is stored by DBMS in database
catalog or dictionary; it is called “meta-data”.
2/17/2025
11 DBMS functions…
Constructing Database:
Constructing a database is the process of storing the data on some storage medium (hard
drive, cloud-based,…) that is controlled by the DBMS.
Manipulating Database:
Manipulating a database include functions such as querying the database to retrieve
specific data, updating the database to reflect changes in the mini-world, and generating
reports from the data.
Sharing Database:
Sharing a database allows multiple users and programs to access the database
simultaneously ( train tickets, …).
Protecting Database:
Protection includes system protection against hardware and software malfunction or crashes, and
security protection against unauthorized access(privilege).
2/17/2025
12 Typical DBMS Functionality
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
2/17/2025
13 Typical DBMS Functionality…
Other features:
Protection or Security measures to prevent unauthorized access.
Presentation and Visualization of data.
Maintaining the database and associated programs over the lifetime of the
database application.
2/17/2025
14
Summarize
the previous slides
2/17/2025
15 Summary
Data Base Management System (DBMS) :
Collection of programs.
Enable users to create and maintain database.
Defining a database :
Specify the data type, structure and constraints of the data to be stored.
Meta-data:
Database definition or descriptive information.
Stored by the DBMS in the form of database catalog or dictionary.
Manipulating a database:
Query and update the database.
Generate reports.
2/17/2025
16 Summary…
Sharing a database:
Allow multiple users and programs to access the database simultaneously.
Application program:
Access database by sending queries to DBMS.
Query:
Causes some data to be retrieved.
Transaction:
May cause some data to be read and some data to be written into the DB.
Maintain the database system:
Allow the system to improve as requirements change over time.
2/17/2025
17
2/17/2025
18 A real example “University data base”
University database :
❖ Information concerning students, courses, grades in the university environment.
Data records ( I want to store data about what ?):
❖ STUDENTs
❖ COURSEs
❖ SECTIONs (of COURSEs)
❖ (academic) DEPARTMENTs
❖ INSTRUCTORs
❖ PREREQUSITE
❖ GRADES
2/17/2025
19 “University data base”…
Specify structure of records of each file by specifying data type for each data
element.
❖ Integer
❖ String
❖ Etc.
Construct “university” database:
❖ Store data to represent each student, course, section, and prerequisite as a record
in appropriate file.
❖ Relationship among the records.
❖ Manipulating involves querying and updating.
➢ Query example : list the names of students who register “database” course.
➢ Another query ex: list the prerequisite of the “database” course.
2/17/2025
Example of a Database (with a Conceptual
20
Data Model)…
Some mini-world (university database)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 data model (Chapters 3, 4)
2/17/2025
University database…
21
2/17/2025
Example of a simplified database catalog
22
2/17/2025
23 Simplified database system environment
2/17/2025
24 Managing Data
There are two approaches to manage data
1. File-based approach:
❖An approach that utilizes a collection of application programs which
performs services to end-users (e.g., Reports).
❖Each program defines and manages its own data.
2. Database approach:
❖ An approach that data is collected and manipulated using specific
software called Database Management System, and many programs
share this data.
2/17/2025
25 Disadvantages of file processing approach
Program data dependance:
All programs maintain meta data for each file they use.
Duplication of data:
Different system/programs have separate copies of the same data(no sharing)
Limited data sharing:
No centralized control of data.
Lengthy development times:
Programmers must design their own file formats.
Excessive program maintenance:
80% of information system budget.
2/17/2025
26 Disadvantages of file processing approach
2/17/2025
27 Database approach is the solution
Central storage of shared data.
Data is managed by a controlling agent.
Stored in standardized convenient form.
Order filing
system
DBMS Central database
Invoicing Contains employee,
system Order, inventory,
Pricing, and
customer data
2/17/2025
28 Main Characteristics of the Database Approach
Self-describing nature of a database system:
❖A DBMS catalog stores the description of a particular database (e.g.,
data structures, types, storage format, and constraints).
❖The description is called meta-data.
❖This allows the DBMS software to work with different database
applications; because DBMS use catalog.
Insulation between programs and data:
❖Called program-data independence ( PDI ).
❖Allows changing data structures and storage organization without having
to change the DBMS access programs.
❖Program operation independence (POI) (OO system).
❖Data abstraction = PDI + POI.
2/17/2025
Main Characteristics of the Database Approach
29
(continued)…
❖Data Abstraction:
➢A data model is a type of data abstraction (ERD,…).
➢It hide storage details and present the users with a conceptual view
of the database.
➢Programs refer to the data model constructs rather than data storage
details.
Support of multiple views of the data:
❖Each user may see a different view of the database, which describes
only the data of interest to that user.
❖This characteristic used in security. 2/17/2025
Main Characteristics of the Database Approach
30
(continued)…
Sharing of data and multi-user transaction processing:
❖Allowing a set of concurrent users to retrieve from and to update the
database.
❖Concurrency control within the DBMS guarantees that each transaction is
correctly executed or aborted (ticket reservation).
❖Recovery subsystem ensures each completed transaction has its effect
permanently recorded in the database
❖OLTP (Online Transaction Processing) is a major part of database
applications. This allows hundreds of concurrent transactions to execute per
second (Bank transfer).
2/17/2025
Advantages of Using the DBMS Approach
31
2/17/2025
Additional Implication of Using the Database Approach
33
2/17/2025
Additional Implication of Using the Database Approach,
34
continued …
Flexibility to change data structures:
❖Database structure may evolve as new requirements are defined.
Availability of current information:
❖Extremely important for on-line transaction systems such as airline,
hotel, car reservations.
Economies of scale:
❖Wasteful overlap of resources and personnel can be avoided by
consolidating data and applications across departments.
2/17/2025
When not to use a DBMS
35
2/17/2025
37 Review Questions
True or False?
1. Database is a collection of random data.
2. A database is designed, built, and populated with data for
specific purpose.
3. DBMS : is a general-purpose software system.
4. In database approach : each program defines and manages its
own data.
What doses we mean by “Manipulating the database”?
What are the main advantages of DBMS?
When not to use a DBMS?
2/17/2025
38
2/17/2025