Presentation 1 (Introduction To Databases
Presentation 1 (Introduction To Databases
MOIS320102
Presentation 1:
Introduction
Nahed Azab
Overview
Characteristics of Databases
Components of a database system
Personal vs. enterprise-class database systems
Database design
History of database processing
What’s a Database?
A database is a self-describing collection of integrated records
The tables are called integrated because they store data about the relationships between the rows of
data
The Characteristics of Databases
The purpose of a database is to help people track things of interest to them
Data is stored in tables, which have rows and columns like a spreadsheet. A database may have multiple
tables, where each table stores data about a different thing
Each row in a table stores data about an occurrence or instance of the thing of interest
Lookup
General
Format Input Mask Caption Default Value VaSdation Rule Valdation Text Required
Indexed IME Mode
IME Sentence Mode
Short Date 99/99/0000; 0
-Now()
Yes No
No Control None
The data type determines the kind of values that users can store In the field. Press Fi
for help on data types.
Example: Student/Class/Grade
The STUDENT table
33 students Record: y
StudentNumber LastNam F EmailAddress »
1 H Cooke Sam
2 Lau Marcia [email protected]
3 Harris Lou [email protected]
4 Greene Grace
The CLASS table
3 CLASSES Records: X
ClassNum - ClassName • Term Section
1 12 CHEM 2012-Fall 1
2 20 CHEM 2012-Fall 2
3 30 CHEM 2013- 1
4 40 ACCT101 2012-Fall 1
5 50 ACCT 102 2013- 1
The GRADE table —but who do these grades belong to?
3 grades Record: X
Grade »
<E
3.5
3.7
3.1
3.0
3.5
0.0
The Key Characteristic of Databases: Related Tables
The STUDENT table H 3 STUDENT
The GRADE table with foreign keys—now each grade is linked back to the STUDENT and
CLASS tables
StudentNumber - LastName * 1 Cooke
EmailAddress [email protected]
[email protected] [email protected] [email protected]
The CLASS table
Patient appointment Medical office 15 to 50 100,000 rows Vertical market software vendors
(doctor, dentist) incorporate databases into their
software products.
Digital dashboard Senior managers 500 100,000 rows Extractions, summaries, and
consolidations of operational
databases.
Reports
Last Name First Name Grade
Cooke Sam 3.7
Lau Marcia 3.7
Harris Lou 3.1
Cooke Sam 3.5
Greene Grace 3.0
Greene Grace 3.5
The DBMS
• Create database
• Create tables
• Create supporting structures (e.g., indexes)
• Read database data
• Modify (insert, update, or delete) database data
• Maintain database structures
• Enforce rules
• Control concurrency
• Provide security
• Perform backup and recovery
The Database
• A database is a self-describing collection of integrated tables.
• The tables are called integrated because they store data about the relationships between the
rows of data.
• A database is called self-describing because it stores a description of itself.
• The self-describing data is called metadata, which is data about data.
Typical Metadata Tables
USE FL TABLES Table
TableN NumberColu PrimaryKey
ame mns
STUDE 4 StudentNumber
NT
CLASS 4 ClassNumber
GRADE 3 (StudentNumber,
ClassNumber)
USED COLUMNS Table
ColumnNa TableName DataType Length
me (bytes)
StudentNu STUDENT Integer 4
mber
Last STUDENT Text 25
Name
FirstName STUDENT Text 25
EmailAddr STUDENT Text 100
ess
ClassNum CLASS Integer 4
ber
Name CLASS Text 25
Term CLASS Text 12
Section CLASS Integer 4
StudentNu GRADE Integer 4
mber
ClassNum GRADE Integer 4
ber
Grade GRADE Decimal (2,1)
Database Contents
* Tables of user data
* Metadata
* Indexes
* Stored procedures
* Triggers
* Security data
* Backup/recovery data
Stored Procedures: can receive input parameters and return results.
Triggers: maintain DB accuracy & consistency, provide default values, and enforce data
constraints.
Security data: define users, groups, and allowed permissions.
Backup/recovery data: save DB data to backup devices & recover data when needed.
Personal DBMS: Microsoft Access
Microsoft Access
Microsoft Access
Microsoft Access is a low-end product intended for individual users and small workgroups.
Microsoft Access tries to hide much of the underlying database technology from the user.
A good strategy for beginners, but not for database professionals.
What Is Microsoft Access?
Microsoft Access is a DBMS + an application generator:
• The DBMS creates, processes, and administers Microsoft Access databases.
• The application generator includes query, form, and report components.
The Microsoft Access DBMS engine is called the Access Data Engine (ADE).
Microsoft Access 2000 thru 2010 can be used as an application generator for the Microsoft
SQL Server DBMS.
Enterprise-Class Database Systems
Prominent DBMS Products
Microsoft Access 2013
Microsoft SQL Server 2014
Oracle Corporation Oracle Database 11 a Release 2
MySQL 5.6
IBM DB2
DBMS Power vs. Ease of Use
Microsoft Oracle Corp. Microsoft IBM Oracle Corp.
Access (ADE)
MySQL
SQL Server
DB2
Oracle Database
10 Accounting
20 Marketing
100 Jones 10
150 Lau 20
200 McCauley 10
300 Griffin 10
Database Design from New Systems Development
Forms
Reports
Use Cases and Other Systems Development Documents
User Requirement Statements
Data Model
Data Model Transformation
Systems Requirements
Database Design from Database
Redesign
Database Migration
OR
Database!
Database2
Database Integration
What You Need To Learn
Web Server with PHP or Java Applications
Client Applications in C# orVB.NET
Web Portal with Reporting Applications
Knowledge Worker and Programmer
SQ L
Access Database Engine {ADE)
SQL Server
MySQL
Oracle Database
Database Administrator
Knowledge Priorities
Topic Chapter Importance to Knowledge Importan
Worker and Adm
Programmer
Basic SQL Chapter 2 1 1
1 = Very important; £ = Important; 3 = Less important Warning: Opinions vary, ask your
instructor for his or hers.
A Brief History of Database Processing I
Era Years Important Products Remarks